lib/tests/util/support/Rehydratable.test.ts
2021-11-26 14:32:05 -06:00

16 lines
403 B
TypeScript

import { expect } from 'chai'
import { isJSONState } from '../../../lib'
describe('util -> support -> Rehydratable -> isJSONState', () => {
it('should return true for valid JSON', () => {
expect(isJSONState('this is a string'))
.to.be.true
expect(isJSONState(1234))
.to.be.true
expect(isJSONState({ name: true }))
.to.be.true
})
})