Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwellll committed Jan 11, 2025
1 parent 1c13e6f commit fa948c5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions __tests__/hellotext_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ afterEach(() => {
});

describe("when trying to call methods before initializing the class", () => {
it("raises an error when Hellotext.session is called", () => {
expect(() => Hellotext.session).toThrowError()
});

it("raises an error when Hellotext.track is called", () => {
expect(Hellotext.track("page.viewed")).rejects.toThrowError()
});
Expand Down
2 changes: 1 addition & 1 deletion dist/hellotext.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions lib/hellotext.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ var Hellotext = /*#__PURE__*/function () {
}, {
key: "session",
get: function get() {
if (this.notInitialized) {
throw new _errors.NotInitializedError();
}
return _models.Session.session;
}

Expand Down
4 changes: 0 additions & 4 deletions src/hellotext.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ class Hellotext {
* @returns {String}
*/
static get session() {
if (this.notInitialized) {
throw new NotInitializedError()
}

return Session.session
}

Expand Down

0 comments on commit fa948c5

Please sign in to comment.