All files constance.test.ts

100% Statements 11/11
100% Branches 0/0
100% Functions 4/4
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201x 1x   1x   1x 1x     1x 1x 1x     1x 1x 1x      
import * as Constance from './constance'
import { expect } from 'chai'
 
describe('Constance', () => {
 
  it('should have been defined', () => {
    expect(typeof Constance).to.equal('object')
  })
 
  it('should have STATEX_ACTION_KEY defined', () => {
    expect(typeof Constance.STATEX_ACTION_KEY).to.equal('symbol')
    expect(Constance.STATEX_ACTION_KEY.toString()).to.equal('Symbol(statex:actions)')
  })
 
  it('should have STATEX_DATA_BINDINGS_KEY defined', () => {
    expect(typeof Constance.STATEX_DATA_BINDINGS_KEY).to.equal('symbol')
    expect(Constance.STATEX_DATA_BINDINGS_KEY.toString()).to.equal('Symbol(statex:dataBindings)')
  })
 
})