diff --git a/test/fixtures/example.js b/test/fixtures/example.js deleted file mode 100644 index b5aeff40..00000000 --- a/test/fixtures/example.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = app => { - app.log('loaded app') - - app.on('issue_comment.created', context => { - context.log('Comment created') - }) -} diff --git a/test/fixtures/example.ts b/test/fixtures/example.ts new file mode 100644 index 00000000..48ad706f --- /dev/null +++ b/test/fixtures/example.ts @@ -0,0 +1,9 @@ +import { Application } from '../../src/application' + +export = (app: Application) => { + app.log('loaded app') + + app.on('issue_comment.created', async context => { + context.log('Comment created') + }) +} diff --git a/test/fixtures/plugin/stub-plugin.js b/test/fixtures/plugin/stub-plugin.js deleted file mode 100644 index 37d7332f..00000000 --- a/test/fixtures/plugin/stub-plugin.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = function () {} diff --git a/test/fixtures/plugin/stub-plugin.ts b/test/fixtures/plugin/stub-plugin.ts new file mode 100644 index 00000000..88690fbc --- /dev/null +++ b/test/fixtures/plugin/stub-plugin.ts @@ -0,0 +1,2 @@ +// tslint:disable-next-line:no-empty +export = () => {}