-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SCSS Asset 1`] = ` | ||
"bXipeBrs.png | ||
bsdudxaF.md | ||
gToHHcDx.scss | ||
gToHHcDx.scss.map | ||
index.js" | ||
`; | ||
|
||
exports[`SCSS Asset 2`] = ` | ||
"import content from './bsdudxaF.md'; | ||
import scss from './gToHHcDx.scss'; | ||
function index() { | ||
return content + scss | ||
} | ||
export default index; | ||
" | ||
`; | ||
|
||
exports[`SCSS Asset 3`] = ` | ||
"body { | ||
font-size: 20px; | ||
background: url(./bXipeBrs.png) top left repeat; | ||
} | ||
/*# sourceMappingURL=gToHHcDx.scss.map */" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Hello |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import content from "./content.md" | ||
import scss from "./index.scss" | ||
|
||
export default function() { | ||
return content + scss | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
body { | ||
font-size: 20px; | ||
background: url(./image.png) top left repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { bundle, clean, list, read } from "../util" | ||
|
||
const root = __dirname | ||
|
||
test("SCSS Asset", async () => { | ||
await bundle(root, "index.js", "output/index.js") | ||
|
||
expect(await list(root, "output")).toMatchSnapshot() | ||
expect(await read(root, "output/index.js")).toMatchSnapshot() | ||
expect(await read(root, "output/gToHHcDx.scss")).toMatchSnapshot() | ||
|
||
await clean(root, "output") | ||
}) |