techspert-io / connect-interview-test

0 stars 0 forks source link

I running several test and this is my results #1

Open pilukarts opened 2 years ago

pilukarts commented 2 years ago

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main>npm run test:watch

connect-tech-test@1.0.0 test:watch
jest --watch
Determining test suites to run...
--watch is not supported without git/hg, please use --watchAll

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main>cd src

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main\src>npm run test --watchAll

connect-tech-test@1.0.0 test
jest

FAIL src/tests/rxjs.spec.ts (31.433 s)
● emits first 5 letters of the alphabet

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   
pilukarts commented 2 years ago

next ts issues......

● emits fizzbuzz every second

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   
pilukarts commented 2 years ago

FAIL src/tests/starter.spec.ts
● Capitalize Names

expect(received).toBe(expected) // Object.is equality                                                                                   

Expected: "Dominic Calvert-Lewin"                                                                                                       
Received: "DOMiNIc calvert-LeWin"                                                                                                       

   5 | test("Capitalize Names", () => {                                                                                                 
   6 |   const res = formatName("DOMiNIc calvert-LeWin");                                                                               
>  7 |   expect(res).toBe("Dominic Calvert-Lewin");                                                                                     
     |               ^                                                                                                                  
   8 | });                                                                                                                              
   9 |                                                                                                                                  
  10 | test("Distinct Numbers", () => {                                                                                                 

  at Object.<anonymous> (src/tests/starter.spec.ts:7:15)                                                                                

● Distinct Numbers

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 0                                                                                                                         
+ Received  + 3                                                                                                                         

  Array [                                                                                                                               
+   7,                                                                                                                                  
    1,                                                                                                                                  
    3,                                                                                                                                  
    4,                                                                                                                                  
    7,                                                                                                                                  
+   1,                                                                                                                                  
+   3,                                                                                                                                  
  ]                                                                                                                                     

  10 | test("Distinct Numbers", () => {                                                                                                 
  11 |   const res = distinctNumbers(7, 1, 3, 4, 7, 1, 3);                                                                              
> 12 |   expect(res).toEqual([1, 3, 4, 7]);                                                                                             
     |               ^                                                                                                                  
  13 | });                                                                                                                              
  14 |                                                                                                                                  
  15 | test("Grouping Anagrams", () => {                                                                                                

  at Object.<anonymous> (src/tests/starter.spec.ts:12:15)                                                                               

● Grouping Anagrams

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 5                                                                                                                         
+ Received  + 2                                                                                                                         

  Array [                                                                                                                               
    Array [                                                                                                                             
      "abc",                                                                                                                            
+     "fun",                                                                                                                            
      "bac",                                                                                                                            
-     "cba",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "fun",                                                                                                                            
+     "cba",                                                                                                                            
      "unf",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "hello",                                                                                                                          
    ],                                                                                                                                  
  ]                                                                                                                                     

  15 | test("Grouping Anagrams", () => {                                                                                                
  16 |   const res = anagrams(["abc", "fun", "bac", "fun", "cba", "unf", "hello"]);                                                     
> 17 |   expect(res).toEqual([["abc", "bac", "cba"], ["fun", "unf"], ["hello"]]);                                                       
     |               ^                                                                                                                  
  18 | });                                                                                                                              
  19 |                                                                                                                                  

  at Object.<anonymous> (src/tests/starter.spec.ts:17:15)                                                                               

Test Suites: 2 failed, 2 total
Tests: 5 failed, 5 total
Snapshots: 0 total
Time: 39.147 s
Ran all test suites.

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main\src>cd..

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main>npm test -- SomeTestFileToRun

connect-tech-test@1.0.0 test
jest "SomeTestFileToRun"

No tests found, exiting with code 1
Run with --passWithNoTests to exit with code 0
In C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main
12 files checked.
testMatch: /tests//*.[jt]s?(x), */?(.)+(spec|test).[tj]s?(x) - 2 matches
testPathIgnorePatterns: \node_modules\ - 12 matches
testRegex: - 0 matches
Pattern: SomeTestFileToRun - 0 matches

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main>npm test --Foo

connect-tech-test@1.0.0 test
jest

FAIL src/tests/rxjs.spec.ts (50.67 s)
● emits first 5 letters of the alphabet

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   

● emits fizzbuzz every second

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   

FAIL src/tests/starter.spec.ts
● Capitalize Names

expect(received).toBe(expected) // Object.is equality                                                                                   

Expected: "Dominic Calvert-Lewin"                                                                                                       
Received: "DOMiNIc calvert-LeWin"                                                                                                       

   5 | test("Capitalize Names", () => {                                                                                                 
   6 |   const res = formatName("DOMiNIc calvert-LeWin");                                                                               
>  7 |   expect(res).toBe("Dominic Calvert-Lewin");                                                                                     
     |               ^                                                                                                                  
   8 | });                                                                                                                              
   9 |                                                                                                                                  
  10 | test("Distinct Numbers", () => {                                                                                                 

  at Object.<anonymous> (src/tests/starter.spec.ts:7:15)                                                                                

● Distinct Numbers

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 0                                                                                                                         
+ Received  + 3                                                                                                                         

  Array [                                                                                                                               
+   7,                                                                                                                                  
    1,                                                                                                                                  
    3,                                                                                                                                  
    4,                                                                                                                                  
    7,                                                                                                                                  
+   1,                                                                                                                                  
+   3,                                                                                                                                  
  ]                                                                                                                                     

  10 | test("Distinct Numbers", () => {                                                                                                 
  11 |   const res = distinctNumbers(7, 1, 3, 4, 7, 1, 3);                                                                              
> 12 |   expect(res).toEqual([1, 3, 4, 7]);                                                                                             
     |               ^                                                                                                                  
  13 | });                                                                                                                              
  14 |                                                                                                                                  
  15 | test("Grouping Anagrams", () => {                                                                                                

  at Object.<anonymous> (src/tests/starter.spec.ts:12:15)                                                                               

● Grouping Anagrams

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 5                                                                                                                         
+ Received  + 2                                                                                                                         

  Array [                                                                                                                               
    Array [                                                                                                                             
      "abc",                                                                                                                            
+     "fun",                                                                                                                            
      "bac",                                                                                                                            
-     "cba",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "fun",                                                                                                                            
+     "cba",                                                                                                                            
      "unf",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "hello",                                                                                                                          
    ],                                                                                                                                  
  ]                                                                                                                                     

  15 | test("Grouping Anagrams", () => {                                                                                                
  16 |   const res = anagrams(["abc", "fun", "bac", "fun", "cba", "unf", "hello"]);                                                     
> 17 |   expect(res).toEqual([["abc", "bac", "cba"], ["fun", "unf"], ["hello"]]);                                                       
     |               ^                                                                                                                  
  18 | });                                                                                                                              
  19 |                                                                                                                                  

  at Object.<anonymous> (src/tests/starter.spec.ts:17:15)                                                                               

Test Suites: 2 failed, 2 total
Tests: 5 failed, 5 total
Snapshots: 0 total
Time: 60.685 s
Ran all test suites.

pilukarts commented 2 years ago

// This other test made 3 hours ago for security//

C:\Users\Pilar Rodriguez\Desktop\interview-test\connect-interview-test-main>npm test

connect-tech-test@1.0.0 test
jest

FAIL src/tests/rxjs.spec.ts (25.286 s)
● emits first 5 letters of the alphabet

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   

{1/2)

pilukarts commented 2 years ago

● emits fizzbuzz every second

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 40                                                                                                                        
+ Received  +  0                                                                                                                        

  Array [                                                                                                                               
    Object {                                                                                                                            
      "frame": 0,                                                                                                                       
      "notification": Object {                                                                                                          
        "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "a",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "b",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "c",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "d",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
-       "kind": "N",                                                                                                                    
-       "value": "e",                                                                                                                   
-     },                                                                                                                                
-   },                                                                                                                                  
-   Object {                                                                                                                            
-     "frame": 0,                                                                                                                       
-     "notification": Object {                                                                                                          
-       "error": undefined,                                                                                                             
        "kind": "C",                                                                                                                    
        "value": undefined,                                                                                                             
      },                                                                                                                                
    },                                                                                                                                  
  ]                                                                                                                                     

  3 |                                                                                                                                   
  4 | const testScheduler = new TestScheduler((actual, expected) =>                                                                     
> 5 |   expect(actual).toEqual(expected)                                                                                                
    |                  ^                                                                                                                
  6 | );                                                                                                                                
  7 |                                                                                                                                   
  8 | const rx = (testFn: (helpers: RunHelpers) => void) => () =>                                                                       

  at TestScheduler.assertDeepEqual (src/tests/rxjs.spec.ts:5:18)                                                                        
  at node_modules/rxjs/src/internal/testing/TestScheduler.ts:216:14                                                                     
      at Array.filter (<anonymous>)                                                                                                     
  at TestScheduler.Object.<anonymous>.TestScheduler.flush (node_modules/rxjs/src/internal/testing/TestScheduler.ts:214:39)              
  at TestScheduler.Object.<anonymous>.TestScheduler.run (node_modules/rxjs/src/internal/testing/TestScheduler.ts:678:12)                
  at Object.<anonymous> (src/tests/rxjs.spec.ts:9:17)                                                                                   

FAIL src/tests/starter.spec.ts (15.286 s)
● Capitalize Names

expect(received).toBe(expected) // Object.is equality                                                                                   

Expected: "Dominic Calvert-Lewin"                                                                                                       
Received: "DOMiNIc calvert-LeWin"                                                                                                       

   5 | test("Capitalize Names", () => {                                                                                                 
   6 |   const res = formatName("DOMiNIc calvert-LeWin");                                                                               
>  7 |   expect(res).toBe("Dominic Calvert-Lewin");                                                                                     
     |               ^                                                                                                                  
   8 | });                                                                                                                              
   9 |                                                                                                                                  
  10 | test("Distinct Numbers", () => {                                                                                                 

  at Object.<anonymous> (src/tests/starter.spec.ts:7:15)                                                                                

● Distinct Numbers

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 0                                                                                                                         
+ Received  + 3                                                                                                                         

  Array [                                                                                                                               
+   7,                                                                                                                                  
    1,                                                                                                                                  
    3,                                                                                                                                  
    4,                                                                                                                                  
    7,                                                                                                                                  
+   1,                                                                                                                                  
+   3,                                                                                                                                  
  ]                                                                                                                                     

  10 | test("Distinct Numbers", () => {                                                                                                 
  11 |   const res = distinctNumbers(7, 1, 3, 4, 7, 1, 3);                                                                              
> 12 |   expect(res).toEqual([1, 3, 4, 7]);                                                                                             
     |               ^                                                                                                                  
  13 | });                                                                                                                              
  14 |                                                                                                                                  
  15 | test("Grouping Anagrams", () => {                                                                                                

  at Object.<anonymous> (src/tests/starter.spec.ts:12:15)                                                                               

● Grouping Anagrams

expect(received).toEqual(expected) // deep equality                                                                                     

- Expected  - 5                                                                                                                         
+ Received  + 2                                                                                                                         

  Array [                                                                                                                               
    Array [                                                                                                                             
      "abc",                                                                                                                            
+     "fun",                                                                                                                            
      "bac",                                                                                                                            
-     "cba",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "fun",                                                                                                                            
+     "cba",                                                                                                                            
      "unf",                                                                                                                            
-   ],                                                                                                                                  
-   Array [                                                                                                                             
      "hello",                                                                                                                          
    ],                                                                                                                                  
  ]                                                                                                                                     

  15 | test("Grouping Anagrams", () => {                                                                                                
  16 |   const res = anagrams(["abc", "fun", "bac", "fun", "cba", "unf", "hello"]);                                                     
> 17 |   expect(res).toEqual([["abc", "bac", "cba"], ["fun", "unf"], ["hello"]]);                                                       
     |               ^                                                                                                                  
  18 | });                                                                                                                              
  19 |                                                                                                                                  

  at Object.<anonymous> (src/tests/starter.spec.ts:17:15)                                                                               

Test Suites: 2 failed, 2 total
Tests: 5 failed, 5 total
Snapshots: 0 total
Time: 42.612 s, estimated 54 s
Ran all test suites.

{2/2}