Skip to content

Commit c0a151f

Browse files
committed
Merge test case for App.manifest
1 parent 123b6c4 commit c0a151f

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var gui = require('nw.gui');
2+
var assert = require('assert');
3+
4+
describe('gui.App', function() {
5+
describe('manifest', function() {
6+
it('`gui.App.manifest` should equle to value of package.json', function() {
7+
assert.equal(gui.App.manifest.name, 'nw-tests');
8+
});
9+
10+
it('have window', function() {
11+
assert.equal(typeof gui.App.manifest.window, 'object');
12+
});
13+
14+
it('have main', function() {
15+
assert.equal(typeof gui.App.manifest.main, 'string');
16+
assert.equal(gui.App.manifest.main, 'index.html');
17+
});
18+
19+
it('have dependencies', function() {
20+
assert.equal(typeof gui.App.manifest.dependencies, 'object');
21+
});
22+
});
23+
24+
})

tests/tests/App/App.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)