Skip to content

Commit

Permalink
Change Context to be a named export
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed Feb 13, 2019
1 parent b7aefa5 commit 9382119
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface WebhookPayloadWithRepository {
}
}

export default class Context {
export class Context {
/**
* Webhook payload object that triggered the workflow
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/context.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Context from '../src/context'
import { Context } from '../src/context'

describe('Context', () => {
let context: Context
Expand Down

0 comments on commit 9382119

Please sign in to comment.