getUrl -> url consistency

test improvements
This commit is contained in:
Tom Moor
2018-11-04 00:59:52 -07:00
parent 8de074b275
commit 6391474d14
16 changed files with 49 additions and 21 deletions

View File

@@ -6,10 +6,10 @@ import uuid from 'uuid';
beforeEach(flushdb);
beforeEach(jest.resetAllMocks);
describe('#getUrl', () => {
describe('#url', () => {
test('should return correct url for the collection', () => {
const collection = new Collection({ id: '1234' });
expect(collection.getUrl()).toBe('/collections/1234');
expect(collection.url).toBe('/collections/1234');
});
});