Test cleanup and fixes [e-f]

This commit is contained in:
Angelos Chalaris
2018-06-18 16:44:12 +03:00
parent eb3cb2f928
commit dcc4556878
27 changed files with 132 additions and 194 deletions

View File

@ -1,14 +1,11 @@
const expect = require('expect');
const forEachRight = require('./forEachRight.js');
test('forEachRight is a Function', () => {
test('forEachRight is a Function', () => {
expect(forEachRight).toBeInstanceOf(Function);
});
let output = '';
forEachRight([1, 2, 3, 4], val => output+=val);
test('Iterates over the array in reverse', () => {
expect(output, '4321').toBe()
let output = '';
forEachRight([1, 2, 3, 4], val => output+=val);
test('Iterates over the array in reverse', () => {
expect(output).toBe('4321')
});