Skip to content

Commit

Permalink
Merge pull request #46 from JasonEtco/named-exports
Browse files Browse the repository at this point in the history
Change Context to be a named export
  • Loading branch information
JasonEtco authored Feb 13, 2019
2 parents b7aefa5 + 9382119 commit 1a9caf6
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 1a9caf6

Please sign in to comment.