Files
chrome-url-loader/test/test.js
Chen Asraf 19a12da9cf 2022 update
2022-03-07 01:59:39 +02:00

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')`)
})