Skip to content

Commit

Permalink
chore: remove wrong unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Apr 28, 2021
1 parent 2e6eb0b commit aa8b088
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
34 changes: 0 additions & 34 deletions packages/rollup/src/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,40 +197,6 @@ describe('rollup-plugin-imagetools', () => {
expect(metadata).toHaveProperty('xmp')
})
})

describe('defaultDirectives', () => {
test('object', async () => {
const p = rollup({
plugins: [
testEntry(`
import Image from "./pexels-allec-gomes-5195763.png?w=300"
export default Image
`),
imagetools({
defaultDirectives: { foo:'bar' }
})
]
})

await expect(p).resolves.toBeDefined()
})

test('function', async () => {
const p = rollup({
plugins: [
testEntry(`
import Image from "./pexels-allec-gomes-5195763.png?w=300"
export default Image
`),
imagetools({
defaultDirectives: () => ({ foo:'bar' })
})
]
})

await expect(p).resolves.toBeDefined()
})
})
})

test('relative path', async () => {
Expand Down
40 changes: 0 additions & 40 deletions packages/vite/src/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,46 +251,6 @@ describe('vite-imagetools', () => {
expect(metadata).toHaveProperty('xmp')
})
})

describe('defaultDirectives', () => {
test('object', async () => {
const p = build({
logLevel: 'warn',
build: { write: false },
plugins: [
testEntry(`
import Image from "./pexels-allec-gomes-5195763.png?w=300"
export default Image
`),

imagetools({
defaultDirectives: { foo:'bar' }
})
]
})

await expect(p).resolves.toBeDefined()
})

test('function', async () => {
const p = build({
logLevel: 'warn',
build: { write: false },
plugins: [
testEntry(`
import Image from "./pexels-allec-gomes-5195763.png?w=300"
export default Image
`),

imagetools({
defaultDirectives: () => ({ foo:'bar' })
})
]
})

await expect(p).resolves.toBeDefined()
})
})
})

test('relative import', async () => {
Expand Down

0 comments on commit aa8b088

Please sign in to comment.