Skip to content
Permalink
Browse files

test(resolve-dir): add a fixture that is actually an electron-forge p…

…ackage.json file
  • Loading branch information
MarshallOfSound committed Dec 4, 2016
1 parent f1f06ac commit e0e712dd8d83ac5c2f54845b6e9ba7330722624c
Showing with 31 additions and 2 deletions.
  1. 0 test/fixture/foo/null
  2. +29 −0 test/fixture/package.json
  3. +2 −2 test/util_spec.js
No changes.
@@ -0,0 +1,29 @@
{
"name": "",
"productName": "",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "electron-forge start"
},
"keywords": [],
"author": "",
"license": "MIT",
"config": {
"forge": {
"make_targets": {
"win32": ["squirrel"],
"darwin": ["zip"],
"linux": ["deb", "rpm"]
},
"electronPackagerConfig": {},
"electronWinstallerConfig": {},
"electronInstallerDebian": {},
"electronInstallerRedhat": {}
}
},
"devDependencies": {
"electron-prebuilt-compile": "9.9.9"
}
}
@@ -9,7 +9,7 @@ describe('resolve-dir', () => {
});

it('should return a directory if it finds a node module', async () => {
expect(await resolveDir(path.resolve(__dirname, '../tmpl'))).to.not.be.equal(null);
expect(await resolveDir(path.resolve(__dirname, '../tmpl'))).to.be.equal(path.resolve(__dirname, '../tmpl'));
expect(await resolveDir(path.resolve(__dirname, 'fixture/foo'))).to.not.be.equal(null);
expect(await resolveDir(path.resolve(__dirname, 'fixture/foo'))).to.be.equal(path.resolve(__dirname, 'fixture'));
});
});

0 comments on commit e0e712d

Please sign in to comment.
You can’t perform that action at this time.