Skip to content

Commit

Permalink
wip: cleanup interface to make backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 25, 2018
1 parent b2155a9 commit 09f5692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsl/interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Interaction {
throw new Error("You must provide an HTTP method.");
}

if (!keys(HTTPMethod).includes(requestOpts.method.toString())) {
if (keys(HTTPMethod).indexOf(requestOpts.method.toString()) < 0) {
throw new Error(`You must provide a valid HTTP method: ${keys(HTTPMethod).join(", ")}.`);
}

Expand Down

0 comments on commit 09f5692

Please sign in to comment.