mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
14 lines
355 B
JavaScript
14 lines
355 B
JavaScript
const utils = require('../lib/utils');
|
|
const assert = require('assert');
|
|
|
|
describe('utils', () => {
|
|
describe('#isOneOf()', () => {
|
|
it('should be false', () => {
|
|
assert.equal(utils.isOneOf('bla', ['blub']), false);
|
|
});
|
|
it('should be true', () => {
|
|
assert.equal(utils.isOneOf('bla blub blubber', ['bla']), true);
|
|
});
|
|
});
|
|
});
|