-
Notifications
You must be signed in to change notification settings - Fork 2
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 #178 from metafacture/160-addIntegrationTestFor144
Add integration test for #144
- Loading branch information
Showing
20 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ntegration/method/fromJson/toJson/appendArrayOfObjectsWithFirstArrayWildcard/disabled.txt
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 @@ | ||
See issue #144 |
9 changes: 9 additions & 0 deletions
9
...tegration/method/fromJson/toJson/appendArrayOfObjectsWithFirstArrayWildcard/expected.json
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,9 @@ | ||
{ | ||
"animals" : [ { | ||
"name" : "Jake", | ||
"type" : "dog is cool" | ||
}, { | ||
"name" : "Blacky", | ||
"type" : "bird" | ||
} ] | ||
} |
12 changes: 12 additions & 0 deletions
12
.../integration/method/fromJson/toJson/appendArrayOfObjectsWithFirstArrayWildcard/input.json
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,12 @@ | ||
{ | ||
"animals": [ | ||
{ | ||
"name": "Jake", | ||
"type": "dog" | ||
}, | ||
{ | ||
"name": "Blacky", | ||
"type": "bird" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...ix/integration/method/fromJson/toJson/appendArrayOfObjectsWithFirstArrayWildcard/test.fix
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 @@ | ||
append("animals[].$last.type", " is cool") |
8 changes: 8 additions & 0 deletions
8
...x/integration/method/fromJson/toJson/appendArrayOfObjectsWithFirstArrayWildcard/test.flux
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,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...integration/method/fromJson/toJson/appendArrayOfObjectsWithLastArrayWildcard/disabled.txt
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 @@ | ||
See issue #144 |
9 changes: 9 additions & 0 deletions
9
...ntegration/method/fromJson/toJson/appendArrayOfObjectsWithLastArrayWildcard/expected.json
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,9 @@ | ||
{ | ||
"animals" : [ { | ||
"name" : "Jake", | ||
"type" : "dog" | ||
}, { | ||
"name" : "Blacky", | ||
"type" : "bird is cool" | ||
} ] | ||
} |
12 changes: 12 additions & 0 deletions
12
...x/integration/method/fromJson/toJson/appendArrayOfObjectsWithLastArrayWildcard/input.json
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,12 @@ | ||
{ | ||
"animals": [ | ||
{ | ||
"name": "Jake", | ||
"type": "dog" | ||
}, | ||
{ | ||
"name": "Blacky", | ||
"type": "bird" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...fix/integration/method/fromJson/toJson/appendArrayOfObjectsWithLastArrayWildcard/test.fix
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 @@ | ||
append("animals[].$first.type", " is cool") |
8 changes: 8 additions & 0 deletions
8
...ix/integration/method/fromJson/toJson/appendArrayOfObjectsWithLastArrayWildcard/test.flux
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,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...tegration/method/fromJson/toJson/prependArrayOfObjectsWithFirstArrayWildcard/disabled.txt
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 @@ | ||
See issue #144 |
9 changes: 9 additions & 0 deletions
9
...egration/method/fromJson/toJson/prependArrayOfObjectsWithFirstArrayWildcard/expected.json
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,9 @@ | ||
{ | ||
"animals" : [ { | ||
"name" : "Jake", | ||
"type" : "Big dog" | ||
}, { | ||
"name" : "Blacky", | ||
"type" : "bird" | ||
} ] | ||
} |
12 changes: 12 additions & 0 deletions
12
...integration/method/fromJson/toJson/prependArrayOfObjectsWithFirstArrayWildcard/input.json
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,12 @@ | ||
{ | ||
"animals": [ | ||
{ | ||
"name": "Jake", | ||
"type": "dog" | ||
}, | ||
{ | ||
"name": "Blacky", | ||
"type": "bird" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...x/integration/method/fromJson/toJson/prependArrayOfObjectsWithFirstArrayWildcard/test.fix
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 @@ | ||
prepend("animals[].$first.type", "Big ") |
8 changes: 8 additions & 0 deletions
8
.../integration/method/fromJson/toJson/prependArrayOfObjectsWithFirstArrayWildcard/test.flux
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,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...ntegration/method/fromJson/toJson/prependArrayOfObjectsWithLastArrayWildcard/disabled.txt
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 @@ | ||
See issue #144 |
9 changes: 9 additions & 0 deletions
9
...tegration/method/fromJson/toJson/prependArrayOfObjectsWithLastArrayWildcard/expected.json
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,9 @@ | ||
{ | ||
"animals" : [ { | ||
"name" : "Jake", | ||
"type" : "dog" | ||
}, { | ||
"name" : "Blacky", | ||
"type" : "Big bird" | ||
} ] | ||
} |
12 changes: 12 additions & 0 deletions
12
.../integration/method/fromJson/toJson/prependArrayOfObjectsWithLastArrayWildcard/input.json
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,12 @@ | ||
{ | ||
"animals": [ | ||
{ | ||
"name": "Jake", | ||
"type": "dog" | ||
}, | ||
{ | ||
"name": "Blacky", | ||
"type": "bird" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...ix/integration/method/fromJson/toJson/prependArrayOfObjectsWithLastArrayWildcard/test.fix
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 @@ | ||
append("animals[].$last.type", "Big ") |
8 changes: 8 additions & 0 deletions
8
...x/integration/method/fromJson/toJson/prependArrayOfObjectsWithLastArrayWildcard/test.flux
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,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |