Skip to content

Commit

Permalink
test: recognize www as default app dir (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
demetris-manikas authored and develar committed Apr 21, 2016
1 parent c6ee112 commit 84ead73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/fixtures/test-app/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"name": "TestApp",
"version": "1.1.0",
"description": "Test Application",
"author": "Foo Bar",
"homepage": "https://github.com/atom/electron-quick-start#readme",
"author": "Foo Bar <[email protected]>",
"license": "MIT",
"homepage": "http://foo.example.com",
"dependencies": {
"nslog": "^3.0.0"
}
Expand Down
9 changes: 9 additions & 0 deletions test/src/BuildTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ test("version from electron-prebuilt dependency", () => assertPack("test-app-one
}
}))

test("www as default dir", () => assertPack("test-app", {
platform: [Platform.fromString(process.platform)],
dist: true
}, {
tempDirCreated: projectDir => BluebirdPromise.all([
move(path.join(projectDir, "app"), path.join(projectDir, "www"))
])
}))

test("copy extra resource", async () => {
for (let platform of getPossiblePlatforms()) {
const osName = platform.buildConfigurationKey
Expand Down

0 comments on commit 84ead73

Please sign in to comment.