Skip to content

Commit c2e5edf

Browse files
Mario Aguiarravichdev
authored andcommitted
Update tests to use a fixed date
1 parent da76ff2 commit c2e5edf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugin/tests/js/settings/components/integrations/__snapshots__/api.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports[`Settings: Switch matches snapshot 1`] = `
4747
</span>
4848
</button>
4949
<button
50-
class="mdc-button mdc-dialog__button"
50+
class="mdc-button mdc-dialog__button mdc-action__remove"
5151
type="button"
5252
>
5353
<div

plugin/tests/js/settings/components/integrations/__snapshots__/updater.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`Settings: Updater matches snapshot 1`] = `
2222
<p
2323
class="mdc-typography--body1"
2424
>
25-
Last update on Apr 7, 2021, 09:47 PM
25+
Last update on Apr 13, 2021, 09:58 AM
2626
</p>
2727
</div>
2828
<div
@@ -255,7 +255,7 @@ exports[`Settings: Updater matches snapshot when should not update 1`] = `
255255
<p
256256
class="mdc-typography--body1"
257257
>
258-
Last update on Apr 7, 2021, 09:47 PM
258+
Last update on Apr 13, 2021, 09:58 AM
259259
</p>
260260
</div>
261261
<div

plugin/tests/js/settings/components/integrations/updater.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { SettingsProvider } from '../../../../../assets/src/settings/context';
2929
const baseProps = {
3030
title: 'Google Fonts',
3131
type: 'FONTS',
32-
lastUpdated: parseInt( Date.now(), 10 ),
32+
lastUpdated: 1618325906728,
3333
needsKey: true,
3434
checked: true,
3535
apiStatus: 'ok',

0 commit comments

Comments
 (0)