pass linter

This commit is contained in:
Kostas Bariotis 2017-10-06 21:24:48 +03:00
parent 234d66549e
commit 8ce5d2f3be
2 changed files with 3 additions and 6 deletions

View File

@ -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);
}
});

View File

@ -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();