mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-06 17:27:20 +08:00
26 lines
681 B
JavaScript
26 lines
681 B
JavaScript
import { $view } from "common/view";
|
|
|
|
let chai = require("chai/chai");
|
|
let assert = chai.assert;
|
|
|
|
describe("common/view", () => {
|
|
it("should return parent", () => {
|
|
assert.equal($view.parent(), null);
|
|
});
|
|
it("should return parent name", () => {
|
|
assert.equal($view.parentName(), "");
|
|
});
|
|
it("should return data", () => {
|
|
assert.containsSubset($view.data(), {});
|
|
});
|
|
it("should return number of layers", () => {
|
|
assert.containsSubset($view.layers(), 0);
|
|
});
|
|
it("should return if root view is active", () => {
|
|
assert.equal($view.isRoot(), true);
|
|
});
|
|
it("should return if view is app", () => {
|
|
assert.equal($view.isApp(), true);
|
|
});
|
|
});
|