-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.6.3 is breaking existing tests #203
Comments
can you provide a repository that reproduces this issue? otherwise this will be hard/impossible to fix |
Sadly I can not. But I will investigate a bit more this afternoon and compare versions |
The only real change between 0.6.2 and 0.6.3 is #198 (see full diff here). I'm not really sure why importing |
As a general note, this assertion is problematic: assert.ok(serializedRecord && serializedRecord.asset_id && serializedRecord.marker && serializedRecord.asset_id === 'XXX' && serializedRecord.marker === 10); As we can no longer tell which part of this is failing. It could very well be that everything is correct, except the You should instead have separate assertions with meaningful messages: assert.ok(serializedRecord, 'record is serialized');
assert.equal(serializedRecord.asset_id, 'XXX', 'serialized record has correct asset id');
assert.equal(serializedRecord.marker, 10, 'serialized record has correct marker'); All of that to say, I'm skeptical that ember-test-helpers caused this breakage. Refactoring the assertion to give more granular feedback will be helpful, but a reproduction would be best. |
closing due to inactivity |
When downgrading to
0.6.2
the tests are passing again, so something definitely changed.Some output from the test:
The test itself:
Cheers,
Wouter
The text was updated successfully, but these errors were encountered: