Add tests for photos.js

This commit is contained in:
Theresa Gresch 2019-08-07 12:27:57 +02:00
parent e3b4eca77a
commit 0ed8d3235d

View file

@ -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");
});
});