Skip to content

Commit a5f7a78

Browse files
committed
Add missing test file
1 parent 5aea469 commit a5f7a78

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/public/NoIdFieldError.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import test from "ava"
2+
3+
import {NoIdFieldError} from "./NoIdFieldError.js"
4+
5+
test("Has valid properties", t => {
6+
const actual = new NoIdFieldError()
7+
8+
t.is(actual.message, "Node must have an ID field.")
9+
t.is(actual.code, "SLATE_TO_REACT_NO_ID_FIELD_ERROR")
10+
})

0 commit comments

Comments
 (0)