I am using qunit and jquery. Latest version of both.
In my code when I submit the form I have the event as e. I call
e.serializeArray()
Here is my test.
equals(args.data, [ { "name": "user_name", "value": "john" } ], 'input data');
And this is the error message from qunit.
expected: [ { "name": "user_name", "value": "david" } ] result: [ { "name": "user_name", "value": "david" } ]
As you can see to the naked eye the expected and result value is same but qunit is not liking it.
I guess I am missing something.