Skip to content

Commit d206e91

Browse files
committed
Add integration test for once #237
1 parent 0e994b3 commit d206e91

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"author" : [ {
3+
"name" : "RUVIVAL Team",
4+
"type" : "Person"
5+
}, {
6+
"name" : "Samuel Duval",
7+
"type" : "Person"
8+
} ],
9+
"@type" : "test"
10+
}
11+
{
12+
"author" : [ {
13+
"name" : "Jürgen Böhner",
14+
"type" : "Person"
15+
} ]
16+
}
17+
{
18+
"author" : [ {
19+
"name" : "Peter Müller",
20+
"type" : "Person"
21+
} ]
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"author" : [ {
3+
"name" : "RUVIVAL Team",
4+
"type" : "Person"
5+
}, {
6+
"name" : "Samuel Duval",
7+
"type" : "Person"
8+
} ]
9+
}
10+
{
11+
"author" : [ {
12+
"name" : "Jürgen Böhner",
13+
"type" : "Person"
14+
} ]
15+
}
16+
{
17+
"author" : [ {
18+
"name" : "Peter Müller",
19+
"type" : "Person"
20+
} ]
21+
}
22+
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
do once()
2+
add_field("@type","test")
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;

0 commit comments

Comments
 (0)