Add tests for photos.js
This commit is contained in:
parent
e3b4eca77a
commit
0ed8d3235d
1 changed files with 10 additions and 0 deletions
|
@ -183,4 +183,14 @@ describe("model/photo", () => {
|
|||
assert.equal(result, "Canon EOSD10");
|
||||
});
|
||||
|
||||
it("should get collection resource", () => {
|
||||
const result = Photo.getCollectionResource();
|
||||
assert.equal(result, "photos");
|
||||
});
|
||||
|
||||
it("should get model name", () => {
|
||||
const result = Photo.getModelName();
|
||||
assert.equal(result, "Photo");
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in a new issue