-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Snugug/hotfix/form-validate
Fix form.validate being removed
- Loading branch information
Showing
3 changed files
with
12 additions
and
4 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
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import test from 'ava'; | ||
import types from '../'; | ||
|
||
test('Everything Ever', t => { | ||
test('Main Export', t => { | ||
t.is(typeof types, 'function', 'Content Types exports a function'); | ||
|
||
t.is(typeof types.raw, 'function', 'Submodule `raw` exists and is a function'); | ||
t.is(typeof types.only, 'function', 'Submodule `only` exists and is a function'); | ||
t.is(typeof types.form, 'function', 'Submodule `forms` exists and is a function'); | ||
}); | ||
|
||
test('Form Export', t => { | ||
t.is(typeof types.form, 'function', 'Submodule `form` exists and is a function'); | ||
t.is(typeof types.form.validate, 'function', 'Submodule `form.validate` exists and is a function'); | ||
}); | ||
|
||
test('Plugin Test Export', t => { | ||
t.is(typeof types.pluginTests, 'function', 'Submodule `pluginTests` exists and is a function'); | ||
}); |
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