-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1315 from contentstack/bugfix/CS-44158
CS-44158-when adding the path using the inquirer for both import and export removed the quotation marks and version bump
- Loading branch information
Showing
11 changed files
with
84 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { cliux, validatePath } from '../../lib'; | ||
import { expect } from '@oclif/test'; | ||
import { fancy } from '@contentstack/cli-dev-dependencies'; | ||
|
||
describe('Testing the Validate function', () => { | ||
describe('When there is no input', () => { | ||
it('should return true', () => { | ||
expect(validatePath('')).eql(true); | ||
}); | ||
}); | ||
describe('When input contains special character', () => { | ||
fancy | ||
.stub(cliux, 'print', () => {}) | ||
.it('should return true', () => { | ||
expect(validatePath('/invalidPath*&%$#')).eql(false); | ||
}); | ||
}); | ||
describe('When input does not contains special character', () => { | ||
fancy | ||
.stub(cliux, 'print', () => {}) | ||
.it('should return true', () => { | ||
expect(validatePath('/validPath')).eql(true); | ||
}); | ||
}); | ||
}); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.