Add tests for photos.js

This commit is contained in:
Theresa Gresch 2019-08-07 14:16:37 +02:00
parent 0ed8d3235d
commit db50a01954

View file

@ -183,6 +183,13 @@ describe("model/photo", () => {
assert.equal(result, "Canon EOSD10");
});
it("should get camera", () => {
const values = {ID: 5, PhotoTitle: "Crazy Cat"};
const photo = new Photo(values);
const result = photo.getCamera();
assert.equal(result, "Unknown");
});
it("should get collection resource", () => {
const result = Photo.getCollectionResource();
assert.equal(result, "photos");