Skip to content

Commit

Permalink
test(assets): remove __esModule' import test
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleU23 committed May 4, 2022
1 parent 966cf0c commit bf0e0d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/assets/assets.spec.js
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')
})
})

0 comments on commit bf0e0d8

Please sign in to comment.