-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate block settings for edit() and save()
Fixes #362. Validates that a block has a `save()` and `edit()`. This is probably a temporary solution. The API should probably be cleaned up a bit so everything is not quite as coupled and tests can be done differently.
- Loading branch information
1 parent
60e13a4
commit 76360c0
Showing
7 changed files
with
251 additions
and
39 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
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 @@ | ||
/** | ||
* Function references used so that Chai doesn't complain about functions | ||
* not being equal. | ||
* | ||
* These are methods that should be assigned to a valid block. | ||
*/ | ||
export const edit = function edit() { | ||
'tacos'; | ||
}; | ||
|
||
export const save = function save() { | ||
'delicious'; | ||
}; |
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
Oops, something went wrong.