-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(assets): remove __esModule' import test
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
import * as assets from './index' | ||
|
||
console.log('ASSETS:\n') | ||
console.log(assets) | ||
|
||
const { chai: { expect }} = global | ||
|
||
describe('[Assets] - file-loader', function() { | ||
it('export-default-from as namespace', () => { | ||
// check export-default-from | ||
expect(assets.__esModule).to.be.equal(true) // eslint-disable-line import/namespace | ||
describe('[Assets] - file-loader combined with export-default-from', function() { | ||
it('imported namespace contains asset keys', () => { | ||
// check import - import-namespace combined with export-default-from | ||
expect(assets).to.contain.keys('stackr23_logo') | ||
}) | ||
|
||
it('output contains \'[path][name]\'', () => { | ||
// check path prefix | ||
it('asset key contains \'/[path]/[name].[ext]\'', () => { // check path prefix | ||
expect(assets.stackr23_logo).to.contain('/assets/stackr23_logo.jpg') | ||
}) | ||
}) |