Skip to content

Commit

Permalink
💫 moved test assets to assets directory #7
Browse files Browse the repository at this point in the history
  • Loading branch information
8eecf0d2 committed Oct 16, 2018
1 parent 068363e commit 9391474
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ process.env.NETLIFY_LOCAL_BRANCH = "default"
mocha.describe('Config', () => {
mocha.describe('parseNetlifyConfig', () => {
mocha.it('should throw when not found', () => {
assert.throws(() => parseNetlifyConfig("test/toml/netlify.toml" + Math.random()));
assert.throws(() => parseNetlifyConfig("test/assets/netlify.toml" + Math.random()));
});
mocha.it('should override build with context', () => {
const netlifyConfig = parseNetlifyConfig("test/toml/netlify.toml");
const netlifyConfig = parseNetlifyConfig("test/assets/netlify.toml");

assert.equal(netlifyConfig.build.base, "default-base");
assert.equal(netlifyConfig.build.publish, "default-publish");
Expand All @@ -21,10 +21,10 @@ mocha.describe('Config', () => {
});
mocha.describe('parseWebpackConfig', () => {
mocha.it('should throw when not found', () => {
assert.throws(() => parseWebpackConfig("test/js/webpack.config.js" + Math.random()));
assert.throws(() => parseWebpackConfig("test/assets/webpack.config.js" + Math.random()));
});
mocha.it('should correctly import webpack config', () => {
const webpackConfig = parseWebpackConfig("test/js/webpack.config.js");
const webpackConfig = parseWebpackConfig("test/assets/webpack.config.js");

assert.equal(webpackConfig.target, "node");
});
Expand Down

0 comments on commit 9391474

Please sign in to comment.