@eluvio/elv-js-helpers
Version:
A collection of Javascript helper functions used by several Eluvio libraries.
10 lines (8 loc) • 308 B
JavaScript
const TH = require('../../../test-helpers')
const StringModel = TH.requireSrcFile('Model/StringModel')
describe('StringModel', () => {
it('should work as expected', () => {
StringModel('foo').should.equal('foo')
TH.expect(() => StringModel(42)).to.throw('expecting String, got Number 42')
})
})