Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Test src/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thangngoc89 committed Mar 4, 2016
1 parent 6c25c3b commit b1a6620
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import test from "ava"

test("should throw if trying to require statinamic directly", (t) => {
t.throws(
() => {
require("..")
},
(error) => error.message.includes(
"Please use submodules directly (e.g.: 'statinamic/lib/client')"
)
)
})
2 changes: 1 addition & 1 deletion src/enhance-collection/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test("addSiblingReferences", (t) => {
enhanceCollection(
collec,
{
addSiblingReferences: true
addSiblingReferences: true,
}
),
[
Expand Down

0 comments on commit b1a6620

Please sign in to comment.