-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.spec.ts
31 lines (28 loc) · 887 Bytes
/
app.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Tests for App.
*/
import { $, browser, by } from "protractor";
describe("App", () => {
it("the title is set", (done) => {
const uniteJson = require("../../../../unite.json");
browser.loadAndWaitForAureliaPage("/")
.then(() => {
browser.getTitle()
.then((title) => {
expect(title).toEqual(uniteJson.title);
done();
});
});
});
it("the router text is set", (done) => {
browser.loadAndWaitForAureliaPage("/")
.then(() => {
$("router-view").getText()
.then((routerContent) => {
expect(routerContent).toEqual("Hello UniteJS World!");
done();
});
});
});
});
/* Generated by UniteJS */