Welcome to mirror list, hosted at ThFree Co, Russian Federation.

basics.js « functional « candy « tests - github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4699b083eaf0bc61ac91f01b20b6d7d034a00605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*global define */

var exampleUrl;

if (process.env.CANDY_VAGRANT === 'false' && process.env.CI !== 'true') {
	exampleUrl = 'http://localhost:8080/';
} else {
	exampleUrl = 'http://localhost:80/';
}

define([
	'intern!bdd',
	'intern/chai!expect'
], function (bdd, expect) {
	bdd.describe('Basic chat operation', function () {
		bdd.it('should load the correct page', function () {
			return this.remote.get(exampleUrl)
				.getPageTitle()
				.then(function (title) {
					expect(title).to.equal('Candy - Chats are not dead yet');
				});
		});
	});
});