Skip to content

Commit

Permalink
Update tests for 2021
Browse files Browse the repository at this point in the history
Some tests are currently failing because they are
reading the current year and comparing it against
"2020".
This change updates the tests to expect "2021" instead.
  • Loading branch information
HKrausAxon committed Mar 16, 2021
1 parent 4bfb056 commit d25a743
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions __tests__/utils/rc-edit-spec.ts
Expand Up @@ -19,7 +19,7 @@ const acmeExeRegex = process.platform === 'win32' ? /C:\\tmp\\acme.*\\acme\.exe/
const acmeFileInfo = { 'version-string':
{ CompanyName: 'acme corp',
FileDescription: 'a test',
LegalCopyright: '2020@acme corp',
LegalCopyright: '2021@acme corp',
ProductName: 'acme' },
'file-version': '1.2.3',
'product-version': '1.2.3',
Expand Down Expand Up @@ -51,7 +51,7 @@ test('transfers exe file info to stub exe', async () => {
callback(null, {
CompanyName: 'acme corp',
FileDescription: 'a test',
LegalCopyright: '2020@acme corp',
LegalCopyright: '2021@acme corp',
ProductName: 'acme',
FileVersion: '1.2.3',
ProductVersion: '1.2.3'
Expand All @@ -74,7 +74,7 @@ test('uses parameter if rcinfo fails', async () => {
const wayneOptions = { 'version-string':
{ CompanyName: 'Wayne Enterprise',
FileDescription: 'I am Batman',
LegalCopyright: '2020@Wayne Enterprise',
LegalCopyright: '2021@Wayne Enterprise',
ProductName: 'bat-app' },
'file-version': '3.3.3',
'product-version': '3.3.3',
Expand All @@ -93,7 +93,7 @@ test('uses an explicitly provided app icon for the stub exe', async () => {
callback(null, {
CompanyName: 'acme corp',
FileDescription: 'a test',
LegalCopyright: '2020@acme corp',
LegalCopyright: '2021@acme corp',
ProductName: 'acme',
FileVersion: '1.2.3',
ProductVersion: '1.2.3'
Expand All @@ -115,7 +115,7 @@ test('it users no icon if extraction fails and no explicit one is provided', asy
callback(null, {
CompanyName: 'acme corp',
FileDescription: 'a test',
LegalCopyright: '2020@acme corp',
LegalCopyright: '2021@acme corp',
ProductName: 'acme',
FileVersion: '1.2.3',
ProductVersion: '1.2.3'
Expand All @@ -141,7 +141,7 @@ test('it users no icon if icon extractor module is not available', async () => {
callback(null, {
CompanyName: 'acme corp',
FileDescription: 'a test',
LegalCopyright: '2020@acme corp',
LegalCopyright: '2021@acme corp',
ProductName: 'acme',
FileVersion: '1.2.3',
ProductVersion: '1.2.3'
Expand Down

0 comments on commit d25a743

Please sign in to comment.