Assert Deep Equality with .deepEqual and .notDeepEqual - not working

Hi FCC community,
I have an issue with this challenge.
I have tried this code in multiple versions and it is not working

Version # 1

    test('#deepEqual, #notDeepEqual', function(){
      assert.notDeepEqual( { a: '1', b: 5 } , { b: 5, a: '1' }, "keys order doesn't matter" );
      assert.DeepEqual( { a: [5, 6] }, { a: [6, 5] }, "array elements position does matter !!" );
    });
  });

Version # 2

    test('#deepEqual, #notDeepEqual', function(){
      assert.DeepEqual( { a: '1', b: 5 } , { b: 5, a: '1' }, "keys order doesn't matter" );
      assert.notDeepEqual( { a: [5, 6] }, { a: [6, 5] }, "array elements position does matter !!" );
    });
  });

Error that I get is

// running tests
All tests should pass.
You should choose the right assertion - deepEqual vs. notDeepEqual.
You should choose the right assertion - deepEqual vs. notDeepEqual.
// tests completed

Please, help

Take a closer look at the capitalization of the method names.

I did unless I am not seeing something
I mean they should notDeepEqual and DeepEqual, shouldn’t they ?

It should be deepEqual for the second one actually.

Sorry ; I meant to say deepEqual not DeepEqual ; Sorry
Still doesn’t work though

It just worked with this code

    test('#deepEqual, #notDeepEqual', function(){
      assert.deepEqual( { a: '1', b: 5 } , { b: 5, a: '1' }, "keys order doesn't matter" );
      assert.notDeepEqual( { a: [5, 6] }, { a: [6, 5] }, "array elements position does matter !!" );
    });
  });

… in case if someone needs it for the future

1 Like