mirror of
https://github.com/chenasraf/chrome-url-loader.git
synced 2026-05-18 01:49:02 +00:00
8 lines
298 B
JavaScript
8 lines
298 B
JavaScript
import compiler from "./compiler.js"
|
|
|
|
test("Inserts file path to output properly", async () => {
|
|
const stats = await compiler("test.svg")
|
|
const output = stats.toJson({ source: true }).modules[0].source
|
|
expect(output).toBe(`module.exports = chrome.extension.getURL('static/svg/test.svg')`)
|
|
})
|