-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow options to be an array too
- Loading branch information
Showing
4 changed files
with
136 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`default options mergeOptions all single objects 1`] = ` | ||
Object { | ||
"default": 1, | ||
"options": 1, | ||
"target": 1, | ||
} | ||
`; | ||
|
||
exports[`default options mergeOptions merges sub arrays 1`] = ` | ||
Object { | ||
"array": Array [ | ||
1, | ||
2, | ||
3, | ||
], | ||
} | ||
`; | ||
|
||
exports[`default options mergeOptions options and target as array 1`] = ` | ||
Array [ | ||
Object { | ||
"default": 1, | ||
"options1": 1, | ||
"target1": 1, | ||
}, | ||
Object { | ||
"default": 1, | ||
"options2": 1, | ||
"target2": 1, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`default options mergeOptions options as array 1`] = ` | ||
Array [ | ||
Object { | ||
"default": 1, | ||
"options1": 1, | ||
"target": 1, | ||
}, | ||
Object { | ||
"default": 1, | ||
"options2": 1, | ||
"target": 1, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`default options mergeOptions target as array 1`] = ` | ||
Array [ | ||
Object { | ||
"default": 1, | ||
"options": 1, | ||
"target1": 1, | ||
}, | ||
Object { | ||
"default": 1, | ||
"options": 1, | ||
"target2": 1, | ||
}, | ||
] | ||
`; |
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