Files
30-seconds-of-code/test/pull/pull.test.js
Angelos Chalaris 4f1e8b48b6 Test files linted
2018-08-03 10:39:26 +03:00

12 lines
307 B
JavaScript

const expect = require('expect');
const pull = require('./pull.js');
test('pull is a Function', () => {
expect(pull).toBeInstanceOf(Function);
});
let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
pull(myArray, 'a', 'c');
test('Pulls the specified values', () => {
expect(myArray).toEqual(['b', 'b']);
});