-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data-point): Remove predefined execution order for hash and coll…
…ection to use more than one modifier, use a compose array BREAKING CHANGE: No longer possible to use multiple modifiers without a compose array #73
- Loading branch information
Matthew Armstrong
committed
Feb 18, 2018
1 parent
b608245
commit c62605d
Showing
11 changed files
with
219 additions
and
182 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
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
33 changes: 33 additions & 0 deletions
33
packages/data-point/lib/entity-types/parse-compose/__snapshots__/parse-compose.test.js.snap
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,33 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`parse should parse a single key 1`] = ` | ||
Array [ | ||
Object { | ||
"spec": "$a", | ||
"type": "map", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`parse should parse multiple keys inside of compose 1`] = ` | ||
Array [ | ||
Object { | ||
"spec": "$a", | ||
"type": "map", | ||
}, | ||
Object { | ||
"spec": "$b", | ||
"type": "find", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`parse should throw error for invalid key inside compose 1`] = `"Modifier 'find' in id doesn't match any of the valid Modifiers: map"`; | ||
|
||
exports[`parse should throw error when multiple keys are not inside compose 1`] = `"Entity id is invalid. When using multiple keys, they should be inside compose."`; | ||
|
||
exports[`parse should throw error when the compose key and individual modifier keys are used together 1`] = `"Entity id is invalid; when 'compose' is defined the keys: 'map' should be inside compose."`; | ||
|
||
exports[`parseComposeSpec should throw error if contains more than 1 key 1`] = `"Compose Modifiers may only contain one key, but found 2 (map, filter)"`; | ||
|
||
exports[`parseComposeSpec should throw error if does not contain keys 1`] = `"Compose Modifiers may only contain one key, but found 0"`; |
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.