-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
57 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
const { | ||
task, src, dest, series, | ||
} = require('gulp'); | ||
const ts = require('gulp-typescript'); | ||
const { task } = require('gulp'); | ||
const del = require('del'); | ||
|
||
task('clean', () => del('lib/**', { force: true })); | ||
|
||
task('build', () => src(['src/**/*.ts', '!src/**/*.test.ts', '!src/**/__mock__']) | ||
.pipe(ts({ | ||
target: 'es5', | ||
module: 'commonjs', | ||
declaration: true, | ||
experimentalDecorators: true, | ||
})) | ||
.pipe(dest('lib'))); | ||
|
||
exports.default = series('clean', 'build'); |
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,14 @@ | ||
import { gitlab } from '../index'; | ||
import { ResourceNotOnInstanceError, WIPError } from '../../errors'; | ||
|
||
describe('GitLabSmelter should be able to throw an error when...', () => { | ||
const smelter = gitlab(); | ||
|
||
test('resources are not found', () => { | ||
expect(smelter.resourceError('')).toBeInstanceOf(ResourceNotOnInstanceError); | ||
}); | ||
|
||
test('method is not implemented yet', () => { | ||
expect(smelter.wipError('')).toBeInstanceOf(WIPError); | ||
}); | ||
}); |
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