//spec
it('check process data to see if it returns correct JSON object', function() {
var dataExpected = [];
dataExpected.push({
image : "https://katmou.files.wordpress.com/2011/11/blade_runner.jpeg",
title : "Harrison",
id : 1
});
expect(dataAfter).toEqual(dataExpected);
});
error:
[ERROR] : . THERE WERE FAILURES!
[ERROR] : . ============================================================
[ERROR] : . Recap of failing specs:
[ERROR] : . ------------------------------------------------------------
[ERROR] : . viewP controller check process data to see if it returns correct JSON object. - Expected [ { image : 'https://katmou.files.wordpress.com/2011/11/blade_runner.jpeg', title : 'Harrison', id : '1' } ] to equal [ { image : 'https://katmou.files.wordpress.com/2011/11/blade_runner.jpeg', title : 'Harrison', id : 1 } ].
The data after is identical to what is expected and it is still failing, why?
Cheers.