diff --git a/src/context.ts b/src/context.ts index c261c31..fecba64 100644 --- a/src/context.ts +++ b/src/context.ts @@ -45,7 +45,7 @@ export interface WebhookPayloadWithRepository { } } -export default class Context { +export class Context { /** * Webhook payload object that triggered the workflow */ diff --git a/src/index.ts b/src/index.ts index 56ac5ed..0a238d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ import fs from 'fs' import yaml from 'js-yaml' import minimist, { ParsedArgs } from 'minimist' import path from 'path' -import Context from './context' +import { Context } from './context' import { Exit } from './exit' import { GitHub } from './github' import { Store } from './store' diff --git a/tests/context.test.ts b/tests/context.test.ts index c2ef063..3c2c415 100644 --- a/tests/context.test.ts +++ b/tests/context.test.ts @@ -1,4 +1,4 @@ -import Context from '../src/context' +import { Context } from '../src/context' describe('Context', () => { let context: Context