16 lines
403 B
TypeScript
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
|
||
|
})
|
||
|
})
|