mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
pass linter
This commit is contained in:
parent
234d66549e
commit
8ce5d2f3be
@ -125,15 +125,14 @@ describe('downloadTemplateFromRepo', () => {
|
||||
});
|
||||
|
||||
describe('parseRepoURL', () => {
|
||||
|
||||
it('should throw an error if no URL is provided', () => {
|
||||
expect(parseRepoURL).to.throw(Error);
|
||||
});
|
||||
|
||||
it('should throw an error if URL is not valid', () => {
|
||||
try {
|
||||
parseRepoURL('non_valid_url')
|
||||
} catch(e) {
|
||||
parseRepoURL('non_valid_url');
|
||||
} catch (e) {
|
||||
expect(e).to.be.an.instanceOf(Error);
|
||||
}
|
||||
});
|
||||
@ -141,7 +140,7 @@ describe('downloadTemplateFromRepo', () => {
|
||||
it('should throw an error if URL is not of valid provider', () => {
|
||||
try {
|
||||
parseRepoURL('https://kostasbariotis.com/repo/owner');
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
expect(e).to.be.an.instanceOf(Error);
|
||||
}
|
||||
});
|
||||
|
||||
@ -13,7 +13,6 @@ describe('renameService', () => {
|
||||
let cwd;
|
||||
|
||||
let servicePath;
|
||||
let newServicePath;
|
||||
|
||||
beforeEach(() => {
|
||||
const tmpDir = testUtils.getTmpDirPath();
|
||||
@ -23,7 +22,6 @@ describe('renameService', () => {
|
||||
process.chdir(tmpDir);
|
||||
|
||||
servicePath = tmpDir;
|
||||
newServicePath = path.join(servicePath, 'new-service-name');
|
||||
|
||||
serverless = new Serverless();
|
||||
serverless.init();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user