-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.spec.ts
32 lines (29 loc) · 893 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
32
/**
* Tests for App.
*/
/// <reference path="../e2e-bootstrap.d.ts" />
import { $, browser, by } from "protractor";
describe("App", () => {
it("the title is set", (done) => {
const uniteJson = require("../../../../unite.json");
browser.get("/")
.then(() => {
browser.getTitle()
.then((title) => {
expect(title).toEqual(uniteJson.title);
done();
});
});
});
it("the root text is set", (done) => {
browser.loadAndWaitForPage("/")
.then(() => {
$("#root").getText()
.then((rootContent) => {
expect(rootContent).toEqual("Hello UniteJS World!");
done();
});
});
});
});
/* Generated by UniteJS */