Propmt when a api key can not be use + house keeping (#173)
* chore: remove old files * chore: change JS tests to TS, delete dummy tests * chore: bump manifests version
This commit is contained in:
committed by
GitHub
parent
fe49f50b65
commit
35543489e5
18
tests/utils/in_array.spec.ts
Normal file
18
tests/utils/in_array.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import chai from 'chai';
|
||||
import inArray from '../../src/utils/inArray';
|
||||
|
||||
const expect = chai.expect;
|
||||
|
||||
describe('inArray', function () {
|
||||
it('should be a function', function () {
|
||||
expect(inArray).to.be.a('function');
|
||||
});
|
||||
|
||||
it('should find the needle and return true', function () {
|
||||
expect(inArray('4', ['4', '3', '2', '1'])).to.equal(true);
|
||||
});
|
||||
|
||||
it('should not find the needle and it should return false', function () {
|
||||
expect(inArray('5', ['4', '3', '2', '1'])).to.equal(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user