Skip to content

Commit 80b6acf

Browse files
author
Przemysław Palacz
committed
Test update - jasmine 2.0
1 parent 431cd27 commit 80b6acf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/collection-api-spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ describe('Restmod collection:', function() {
214214
it('should call the type\'s unpack method', function() {
215215

216216

217-
spyOn(Bike, 'unpack');
218-
217+
spyOn(Bike, 'unpack').and.returnValue([]);
218+
var bikes = Bike.$collection();
219+
220+
var raw = [{}];
221+
bikes.$unwrap(raw);
222+
expect(Bike.unpack).toHaveBeenCalledWith(bikes, raw);
219223
});
220224

221225
it('should call $decode', function() {

0 commit comments

Comments
 (0)