Test cleanup and fixes [e-f]
This commit is contained in:
@ -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')
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user