Skip to content

Commit

Permalink
New test + renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Dec 17, 2018
1 parent 0fde078 commit 2d31405
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/flat/flat.test.js → test/flat/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { bundle, clean, exists } from "../util"
const root = __dirname

test("Flat", async () => {
await bundle(root, "flat.js", "output/index.js")
await bundle(root, "index.js", "output/index.js")

expect(exists(root,
[
Expand Down
1 change: 1 addition & 0 deletions test/one-level/assets/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hello
5 changes: 5 additions & 0 deletions test/one-level/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import content from "./assets/content.md"

export default function() {
return content
}
16 changes: 16 additions & 0 deletions test/one-level/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* global __dirname */
import { bundle, clean, exists } from "../util"

const root = __dirname

test("One Level", async () => {
await bundle(root, "index.js", "output/index.js")

expect(exists(root,
[
"output/index.js",
"output/bsdudxaF.md"
])).resolves.toBeTruthy()

await clean(root, "output")
})

0 comments on commit 2d31405

Please sign in to comment.