mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 17:42:42 +00:00
Update specs to expect a views prop from default brew
This commit is contained in:
@@ -71,7 +71,8 @@ describe('Tests for api', ()=>{
|
|||||||
lastViewed : new Date(),
|
lastViewed : new Date(),
|
||||||
version : 1,
|
version : 1,
|
||||||
pageCount : 1,
|
pageCount : 1,
|
||||||
textBin : ''
|
textBin : '',
|
||||||
|
views : 0
|
||||||
};
|
};
|
||||||
googleBrew = {
|
googleBrew = {
|
||||||
...hbBrew,
|
...hbBrew,
|
||||||
@@ -261,7 +262,8 @@ If you believe you should have access to this brew, ask the file owner to invite
|
|||||||
gDrive : false,
|
gDrive : false,
|
||||||
style : undefined,
|
style : undefined,
|
||||||
trashed : false,
|
trashed : false,
|
||||||
updatedAt : undefined
|
updatedAt : undefined,
|
||||||
|
views : 0
|
||||||
});
|
});
|
||||||
expect(next).toHaveBeenCalled();
|
expect(next).toHaveBeenCalled();
|
||||||
expect(api.getId).toHaveBeenCalledWith(req);
|
expect(api.getId).toHaveBeenCalledWith(req);
|
||||||
@@ -452,7 +454,8 @@ brew`);
|
|||||||
thumbnail : '',
|
thumbnail : '',
|
||||||
title : 'asdf',
|
title : 'asdf',
|
||||||
trashed : false,
|
trashed : false,
|
||||||
updatedAt : undefined
|
updatedAt : undefined,
|
||||||
|
views : 0
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -510,7 +513,8 @@ brew`);
|
|||||||
thumbnail : '',
|
thumbnail : '',
|
||||||
title : 'asdf',
|
title : 'asdf',
|
||||||
trashed : false,
|
trashed : false,
|
||||||
updatedAt : undefined
|
updatedAt : undefined,
|
||||||
|
views : 0
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user