@@ -205,27 +205,27 @@ describe('Unique array', () => {
205
205
} ) ;
206
206
} ) ;
207
207
208
- // describe('Find elements', () => {
209
- // it('should create a function named doesWordExist', () => {
210
- // expect(typeof doesWordExist).toBe('function');
211
- // });
208
+ describe ( 'Find elements' , ( ) => {
209
+ it ( 'should create a function named doesWordExist' , ( ) => {
210
+ expect ( typeof doesWordExist ) . toBe ( 'function' ) ;
211
+ } ) ;
212
212
213
- // it('should return null if receives an empty array when called', () => {
214
- // expect(doesWordExist([])).toBe(null);
215
- // });
213
+ it ( 'should return null if receives an empty array when called' , ( ) => {
214
+ expect ( doesWordExist ( [ ] ) ) . toBe ( null ) ;
215
+ } ) ;
216
216
217
- // it('should return true if the word we are looking for is the only one in the array', () => {
218
- // expect(doesWordExist(['machine'], 'machine')).toBe(true);
219
- // });
217
+ it ( 'should return true if the word we are looking for is the only one in the array' , ( ) => {
218
+ expect ( doesWordExist ( [ 'machine' ] , 'machine' ) ) . toBe ( true ) ;
219
+ } ) ;
220
220
221
- // it('should return false if the word we are looking for is not in the array', () => {
222
- // expect(doesWordExist(['machine', 'poison', 'eat', 'apple', 'horse'], 'ratatouille')).toBe(false);
223
- // });
221
+ it ( 'should return false if the word we are looking for is not in the array' , ( ) => {
222
+ expect ( doesWordExist ( [ 'machine' , 'poison' , 'eat' , 'apple' , 'horse' ] , 'ratatouille' ) ) . toBe ( false ) ;
223
+ } ) ;
224
224
225
- // it('should return true if the word we are looking for is in the array', () => {
226
- // expect(doesWordExist(['pizza', 'sandwich', 'snack', 'soda', 'book', 'computer'], 'book')).toBe(true);
227
- // });
228
- // });
225
+ it ( 'should return true if the word we are looking for is in the array' , ( ) => {
226
+ expect ( doesWordExist ( [ 'pizza' , 'sandwich' , 'snack' , 'soda' , 'book' , 'computer' ] , 'book' ) ) . toBe ( true ) ;
227
+ } ) ;
228
+ } ) ;
229
229
230
230
// describe('Count repetition', () => {
231
231
// it('should create a function named howManyTimes', () => {
0 commit comments