-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
622 additions
and
480 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Tests constants file | ||
* | ||
* @group unit/file/loggerTexts | ||
*/ | ||
|
||
import type { TextFunction } from '../interfaces/interfaces' | ||
import { EXTRACT_ZIP, READ_CONFIG } from './loggerTexts' | ||
|
||
describe('constants', () => { | ||
|
||
it('should add the reason in the READ_CONFIG description', () => { | ||
expect((READ_CONFIG.fail as TextFunction)('the reason')).toEqual('Error loading localstore.json from filesystem: the reason') | ||
}) | ||
|
||
it('should add the downloadPath in the EXTRACT_ZIP description', () => { | ||
expect((EXTRACT_ZIP.success as TextFunction)('the download-path')).toEqual('Successfully extracted to "the download-path"') | ||
}) | ||
|
||
it('should add the error in the EXTRACT_ZIP description', () => { | ||
expect((EXTRACT_ZIP.fail as TextFunction)('the-error')).toEqual('Failed to extract binary the-error') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.