You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lib/tests/util/support/Rehydratable.test.ts

16 lines
403 B

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
})
})