Add test for viewer.js
This commit is contained in:
parent
d2f7a14fa9
commit
410b7c6d61
1 changed files with 10 additions and 0 deletions
10
frontend/tests/unit/common/viewer_test.js
Normal file
10
frontend/tests/unit/common/viewer_test.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import assert from "assert";
|
||||
import Viewer from "common/viewer";
|
||||
|
||||
describe("common/viewer", () => {
|
||||
it("should construct viewer", () => {
|
||||
const viewer = new Viewer();
|
||||
assert.equal(viewer.photos, "");
|
||||
assert.equal(viewer.el, null);
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue