This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
5684cea
commit 93e2aa0
Showing
5 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`file schema does not allow for non .js/.css/.ts/.tsx file extensions 1`] = `[ValidationError: "entrypoint filename" with value "index.json" fails to match the required pattern: /^[a-zA-Z0-9/._-]+\\.(js|jsx|css|ts|tsx)$/]`; | ||
exports[`file schema does not allow for non .js/.css/.ts/.tsx file extensions 1`] = `[ValidationError: "entrypoint filename" with value "index.json" fails to match the required pattern: /^[a-zA-Z0-9@/._-]+\\.(js|jsx|css|ts|tsx)$/]`; |
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 |
---|---|---|
|
@@ -38,6 +38,11 @@ test('file schema allows for absolute file paths', () => { | |
expect(result.error).toEqual(null); | ||
}); | ||
|
||
test('file schema allows for email address in path', () => { | ||
const result = Joi.validate('/path/[email protected]/index.js', schemas.file); | ||
expect(result.error).toEqual(null); | ||
}); | ||
|
||
test('hash schema', () => { | ||
const hash = 'a1b2c3a1b2c3'; | ||
const result = Joi.validate(hash, schemas.hash); | ||
|