From 0ed8d3235d5b4db03b53cc0e04420b7393ada4bb Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Wed, 7 Aug 2019 12:27:57 +0200 Subject: [PATCH] Add tests for photos.js --- frontend/tests/unit/model/photo_test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/tests/unit/model/photo_test.js b/frontend/tests/unit/model/photo_test.js index 8ba2af646..22f0bb63d 100644 --- a/frontend/tests/unit/model/photo_test.js +++ b/frontend/tests/unit/model/photo_test.js @@ -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"); + }); + }); \ No newline at end of file