From 0c0cd889ba020d6a709729cb460cbb9e543f3efb Mon Sep 17 00:00:00 2001 From: andela-moseni Date: Tue, 4 Apr 2017 00:11:41 +0100 Subject: [PATCH] modify test files --- jasmine/spec/InvertedIndexSpec.js | 8 ++------ jasmine/testfiles/bundle.js | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/jasmine/spec/InvertedIndexSpec.js b/jasmine/spec/InvertedIndexSpec.js index ae6e29f..ad099ac 100644 --- a/jasmine/spec/InvertedIndexSpec.js +++ b/jasmine/spec/InvertedIndexSpec.js @@ -26,10 +26,6 @@ describe('Meek Inverted Index', () => { expect(InvertedIndex).toBeDefined(); }); - it('should have defined instance', () => { - expect(meek).toBeDefined(); - }); - it('can create instances of inverted index class', () => { expect(meek instanceof InvertedIndex).toBeTruthy(); }); @@ -89,8 +85,8 @@ describe('Meek Inverted Index', () => { expect(InvertedIndex.validateFile(emptyFile)).toBeFalsy(); }); - it('should return false if file is a JSON file but not' + - 'an array of an array', + it(`should return false if file is a JSON file but not + an array of an array`, () => { expect(InvertedIndex.validateFile(notValid)).toBeFalsy(); }); diff --git a/jasmine/testfiles/bundle.js b/jasmine/testfiles/bundle.js index 6492d73..0976634 100644 --- a/jasmine/testfiles/bundle.js +++ b/jasmine/testfiles/bundle.js @@ -106,10 +106,6 @@ describe('Meek Inverted Index', () => { expect(InvertedIndex).toBeDefined(); }); - it('should have defined instance', () => { - expect(meek).toBeDefined(); - }); - it('can create instances of inverted index class', () => { expect(meek instanceof InvertedIndex).toBeTruthy(); }); @@ -169,8 +165,8 @@ describe('Meek Inverted Index', () => { expect(InvertedIndex.validateFile(emptyFile)).toBeFalsy(); }); - it('should return false if file is a JSON file but not' + - 'an array of an array', + it(`should return false if file is a JSON file but not + an array of an array`, () => { expect(InvertedIndex.validateFile(notValid)).toBeFalsy(); });