mirror of https://github.com/webpack/webpack.git
11 lines
280 B
JavaScript
11 lines
280 B
JavaScript
const fs = require("fs")
|
|
export const foo1 = () => {}
|
|
export const foo2 = () => {}
|
|
const bar = "bar";
|
|
export default bar
|
|
|
|
it("should success compile and work",()=>{
|
|
const output = fs.readFileSync(__filename).toString();
|
|
expect(output.match(/exports(\[|\.)/g).length).toBe(4)
|
|
})
|