Skip to content

Commit aa85950

Browse files
committed
small changes from PR comments
Signed-off-by: Antonio Mendoza Pérez <[email protected]>
1 parent 950b5d7 commit aa85950

9 files changed

+9
-9
lines changed

tests/examples/applicantrequest.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('applicationrequest workflow example', () => {
7272
])
7373
.build();
7474

75-
const expected = JSON.parse(fs.readFileSync('./tests/examples/applicantrequest.json').toLocaleString()) as any;
75+
const expected = JSON.parse(fs.readFileSync('./tests/examples/applicantrequest.json', 'utf8'));
7676
expect(workflow).toEqual(expected);
7777
});
7878
});

tests/examples/booklending.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('booklending workflow example', () => {
143143
.functions('file://books/lending/functions.json')
144144
.events('file://books/lending/events.json');
145145

146-
const expected = JSON.parse(fs.readFileSync('./tests/examples/booklending.json').toLocaleString()) as any;
146+
const expected = JSON.parse(fs.readFileSync('./tests/examples/booklending.json', 'utf8'));
147147
expect(workflow).toEqual(expected);
148148
});
149149
});

tests/examples/carauctionbids.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('carauctionbids workflow example', () => {
6363
])
6464
.build();
6565

66-
const expected = JSON.parse(fs.readFileSync('./tests/examples/carauctionbids.json').toLocaleString()) as any;
66+
const expected = JSON.parse(fs.readFileSync('./tests/examples/carauctionbids.json', 'utf8'));
6767
expect(workflow).toEqual(expected);
6868
});
6969
});

tests/examples/checkcarvitals.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('checkcarvitals workflow example', () => {
5151
])
5252
.build();
5353

54-
const expected = JSON.parse(fs.readFileSync('./tests/examples/checkcarvitals.json').toLocaleString()) as any;
54+
const expected = JSON.parse(fs.readFileSync('./tests/examples/checkcarvitals.json', 'utf8'));
5555
expect(workflow).toEqual(expected);
5656
});
5757
});

tests/examples/jobmonitoring.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('jobmonitoring workflow example', () => {
130130
])
131131
.build();
132132

133-
const expected = JSON.parse(fs.readFileSync('./tests/examples/jobmonitoring.json').toLocaleString()) as any;
133+
const expected = JSON.parse(fs.readFileSync('./tests/examples/jobmonitoring.json', 'utf8'));
134134
expect(workflow).toEqual(expected);
135135
});
136136
});

tests/examples/parallel.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('parallel workflow example', () => {
3838
])
3939
.build();
4040

41-
const expected = JSON.parse(fs.readFileSync('./tests/examples/parallel.json').toLocaleString()) as any;
41+
const expected = JSON.parse(fs.readFileSync('./tests/examples/parallel.json', 'utf8'));
4242
expect(workflow).toEqual(expected);
4343
});
4444
});

tests/examples/provisionorder.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('provisionorder workflow example', () => {
7373
])
7474
.build();
7575

76-
const expected = JSON.parse(fs.readFileSync('./tests/examples/provisionorder.json').toLocaleString()) as any;
76+
const expected = JSON.parse(fs.readFileSync('./tests/examples/provisionorder.json', 'utf8'));
7777
expect(workflow).toEqual(expected);
7878
});
7979
});

tests/examples/sendcloudevent.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('sendcloudevent workflow example', () => {
6565
])
6666
.build();
6767

68-
const expected = JSON.parse(fs.readFileSync('./tests/examples/sendcloudevent.json').toLocaleString()) as any;
68+
const expected = JSON.parse(fs.readFileSync('./tests/examples/sendcloudevent.json', 'utf8'));
6969
expect(workflow).toEqual(expected);
7070
});
7171
});

tests/examples/solvemathproblems.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('solvemathproblems workflow example', () => {
5959
])
6060
.build();
6161

62-
const expected = JSON.parse(fs.readFileSync('./tests/examples/solvemathproblems.json').toLocaleString()) as any;
62+
const expected = JSON.parse(fs.readFileSync('./tests/examples/solvemathproblems.json', 'utf8'));
6363
expect(workflow).toEqual(expected);
6464
});
6565
});

0 commit comments

Comments
 (0)