hamjest
Version:
A library of composable matchers for defining meaningful and readable assertions in JavaScript.
19 lines (14 loc) • 362 B
JavaScript
(function () {
'use strict';
describe('hamjest', () => {
it('should export itself globally as "hamjest"', () => {
if (!window.hamjest) {
throw new Error('Could not find hamjest on the window object');
}
});
it('should export Description', () => {
const __ = hamjest;
__.assertThat(__, __.hasProperty('Description'));
});
});
}());