Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Cleaning up inline test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Feb 24, 2019
1 parent 32254a3 commit 551dd61
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 632 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"ky": "^0.8.0",
"np": "^3.1.0",
"postcss": "^7.0.14",
"rollup-plugin-vue": "^4.7.2",
Expand Down
6 changes: 3 additions & 3 deletions test/dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ test('dist bundles imports with module into dist files', async t => {
t.snapshot(await dist({ name, input, output, cjs, esm: true, inline: '' }))
})

test('dist bundles specified imports with module into dist files', async t => {
test('specified import gets bundled with module into dist files', async t => {
const name = 'exportObjectWithImports'
const input = join(__dirname, `fixtures/${name}.js`)
const cjs = join(output, `${name}.js`)
const babel = true
t.snapshot(await dist({ name, input, output, cjs, inline: 'ky', babel }))
const inline = '@ianwalter/npm-short-name'
t.snapshot(await dist({ name, input, output, cjs, inline, babel: true }))
})

test('hashbang is preserved', async t => {
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/exportObjectWithImports.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import npmShortName from '@ianwalter/npm-short-name'
import ky from 'ky'
import promiseComplete from '@ianwalter/promise-complete'
import greeting from './exportDefaultFunction'

export {
npmShortName,
greeting,
ky
promiseComplete,
greeting
}
Loading

0 comments on commit 551dd61

Please sign in to comment.