Skip to content

Commit

Permalink
fix: Fixes on 1.2.0 release candidate (#275)
Browse files Browse the repository at this point in the history
* docs: Add deprecated notation

* chore: replace humanise by humanize
  • Loading branch information
miquelbeltran authored Jul 2, 2024
1 parent 493066e commit fff8b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ raygunClient.user = function (req) {
**Param**: *req*: the current request.
**Returns**: The current user's identifier, or an object that describes the user.

#### Global `setUser(user)` method
#### Global `setUser(user)` method (Deprecated)

You can set the user information globally by calling `setUser(user)` and providing the user information.

Expand Down
10 changes: 5 additions & 5 deletions test/raygun.messageBuilder_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test("basic builder tests", function (t) {
tt.end();
});

t.test("humanise error string", function (tt) {
t.test("humanize error string", function (tt) {
var builder = new MessageBuilder({ useHumanStringForObject: true });
builder.setErrorDetails({ name: "Test" });

Expand All @@ -60,7 +60,7 @@ test("basic builder tests", function (t) {
});

// Reference: https://github.com/MindscapeHQ/raygun4node/issues/68
t.test("humanise Symbol object string", function (tt) {
t.test("humanize Symbol object string", function (tt) {
var builder = new MessageBuilder({ useHumanStringForObject: true });
builder.setErrorDetails({ symbol: Symbol("Test") });
var message = builder.build();
Expand All @@ -70,7 +70,7 @@ test("basic builder tests", function (t) {
tt.end();
});

t.test("humanise self-referencing complex error string", function (tt) {
t.test("humanize self-referencing complex error string", function (tt) {
var builder = new MessageBuilder({ useHumanStringForObject: true });

// error self-references, causing a potential infinite recursion in the filter method
Expand Down Expand Up @@ -98,7 +98,7 @@ test("basic builder tests", function (t) {
tt.end();
});

t.test("humanise leaves strings intact", function (tt) {
t.test("humanize leaves strings intact", function (tt) {
var builder = new MessageBuilder({ useHumanStringForObject: true });
builder.setErrorDetails("my awesome error");

Expand All @@ -108,7 +108,7 @@ test("basic builder tests", function (t) {
tt.end();
});

t.test("dont humanise string", function (tt) {
t.test("dont humanize string", function (tt) {
var builder = new MessageBuilder({ useHumanStringForObject: false });
builder.setErrorDetails({ name: "Test" });

Expand Down

0 comments on commit fff8b1a

Please sign in to comment.