Skip to content

Commit

Permalink
Upgrade node to v18.16 and update tests following the ICU change
Browse files Browse the repository at this point in the history
The ICU changes come from nodejs/node#46646 in
node v18.15.
  • Loading branch information
julienw committed Apr 19, 2023
1 parent cef3308 commit b0d6064
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
node:
docker:
- image: cimg/node:18.14
- image: cimg/node:18.16
base:
docker:
- image: cimg/base:stable
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14
18.16
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
clone_depth: 5
environment:
nodejs_version: "18.14"
nodejs_version: "18.16"
platform: x64 # flow needs 64b platforms

branches:
Expand Down
10 changes: 4 additions & 6 deletions src/test/components/WindowTitle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('WindowTitle', () => {
);

expect(document.title).toBe(
'Firefox – 1/1/1970, 12:00:00\u202FAM UTC – Firefox Profiler'
'Firefox – 1/1/1970, 12:00:00 AM UTC – Firefox Profiler'
);
});

Expand All @@ -56,7 +56,7 @@ describe('WindowTitle', () => {
);

expect(document.title).toBe(
'Firefox – macOS 10.14 – 1/1/1970, 12:00:00\u202FAM UTC – Firefox Profiler'
'Firefox – macOS 10.14 – 1/1/1970, 12:00:00 AM UTC – Firefox Profiler'
);
});

Expand Down Expand Up @@ -100,9 +100,7 @@ describe('WindowTitle', () => {
</Provider>
);

expect(document.title).toBe(
'1/1/1970, 12:00:00\u202FAM UTC – Firefox Profiler'
);
expect(document.title).toBe('1/1/1970, 12:00:00 AM UTC – Firefox Profiler');
});

it('shows the correct title for uploaded recordings', () => {
Expand Down Expand Up @@ -169,7 +167,7 @@ describe('WindowTitle', () => {
);

expect(document.title).toBe(
'bar/profile1.json – Firefox – 1/1/1970, 12:00:00\u202FAM UTC – Firefox Profiler'
'bar/profile1.json – Firefox – 1/1/1970, 12:00:00 AM UTC – Firefox Profiler'
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports[`ListOfPublishedProfiles limits the number of rendered profiles with the
<div
class="publishedProfilesDate"
>
2:00PM
2:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -104,7 +104,7 @@ exports[`ListOfPublishedProfiles limits the number of rendered profiles with the
<div
class="publishedProfilesDate"
>
1:00PM
1:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -304,7 +304,7 @@ exports[`ListOfPublishedProfiles renders action buttons when appropriate 1`] = `
<div
class="publishedProfilesDate"
>
2:00PM
2:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -363,7 +363,7 @@ exports[`ListOfPublishedProfiles renders action buttons when appropriate 1`] = `
<div
class="publishedProfilesDate"
>
1:00PM
1:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -420,7 +420,7 @@ exports[`ListOfPublishedProfiles renders action buttons when appropriate 1`] = `
<div
class="publishedProfilesDate"
>
Jul 3, 8:00AM
Jul 3, 8:00 AM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -543,7 +543,7 @@ exports[`ListOfPublishedProfiles still displays the link to all recordings when
<div
class="publishedProfilesDate"
>
2:00PM
2:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -586,7 +586,7 @@ exports[`ListOfPublishedProfiles still displays the link to all recordings when
<div
class="publishedProfilesDate"
>
Jul 3, 8:00AM
Jul 3, 8:00 AM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -692,7 +692,7 @@ exports[`ListOfPublishedProfiles still displays the link to all recordings when
<div
class="publishedProfilesDate"
>
2:00PM
2:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ exports[`UploadedRecordingsHome matches a snapshot when rendering published prof
<div
class="publishedProfilesDate"
>
2:00PM
2:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -182,7 +182,7 @@ exports[`UploadedRecordingsHome matches a snapshot when rendering published prof
<div
class="publishedProfilesDate"
>
1:00PM
1:00 PM
</div>
<div
class="publishedProfilesInfo"
Expand Down Expand Up @@ -239,7 +239,7 @@ exports[`UploadedRecordingsHome matches a snapshot when rendering published prof
<div
class="publishedProfilesDate"
>
Jul 3, 8:00AM
Jul 3, 8:00 AM
</div>
<div
class="publishedProfilesInfo"
Expand Down

0 comments on commit b0d6064

Please sign in to comment.