Skip to content

Commit

Permalink
Fix references to callback and error classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pineapplemachine committed Mar 28, 2018
1 parent 5be5d0c commit 68ce0d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,9 @@ CanaryTest.Error = CanaryTestError;

const canary = new CanaryTest("Canary");
canary.isGroup = true;

canary.Callback = CanaryTestCallback;
canary.Error = CanaryTestError;
canary.Test = CanaryTest;

module.exports = canary;
Expand Down
2 changes: 1 addition & 1 deletion docs/api-callback-class.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The `CanaryTestCallback` class is used to represent callbacks added to a test using methods such as `onBegin` and `onEnd`. It has a constructor and no methods.
The `CanaryTestCallback` class is used to represent callbacks added to a test using methods such as `onBegin` and `onEnd`. It has a constructor and no methods. It can be accessed via `canary.Callback`.

# getOwner

Expand Down
2 changes: 1 addition & 1 deletion docs/api-error-class.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The `CanaryTestError` class is used to record errors encountered while attempting tests using Canary.
The `CanaryTestError` class is used to record errors encountered while attempting tests using Canary. It can be accessed via `canary.Error`.

# stack

Expand Down

0 comments on commit 68ce0d5

Please sign in to comment.