Add tests for photos.js
This commit is contained in:
parent
0ed8d3235d
commit
db50a01954
1 changed files with 7 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue