Skip to content

Commit 288701c

Browse files
owenc4a4rogerwang
authored andcommitted
test case for App.manifest
relate to nwjs#360
1 parent a3dcabe commit 288701c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/tests/App/App.js

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+
})

0 commit comments

Comments
 (0)