Skip to content

Commit

Permalink
Merge pull request #205 from rudderlabs/production-npm-staging
Browse files Browse the repository at this point in the history
Master <-- from Production branches
  • Loading branch information
sayan-mitra authored Feb 8, 2021
2 parents d1c478d + 4eb125b commit 3ec5360
Show file tree
Hide file tree
Showing 24 changed files with 1,859 additions and 1,004 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ package-lock.json
build.sh
publish.sh
coverage/**
dist/
__tests__/prodsdk.js
123 changes: 62 additions & 61 deletions README.md

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions __tests__/script.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test("Check SDK is loaded as object and api calls reaching to hit network", () =
send: jest.fn(),
readyState: 4,
responseText: JSON.stringify({}),
status: 200,
status: 200
};

window.XMLHttpRequest = jest.fn(() => xhrMock);
Expand All @@ -23,7 +23,7 @@ test("Check SDK is loaded as object and api calls reaching to hit network", () =
"group",
"identify",
"ready",
"reset",
"reset"
],
i = 0;
i < methods.length;
Expand All @@ -38,8 +38,7 @@ test("Check SDK is loaded as object and api calls reaching to hit network", () =
}
rudderanalytics.load(
"1d4Qof5j9WqTuFhvUkmLaHe4EV3",
"https://hosted.rudderlabs.com",
{ logLevel: "DEBUG" }
"https://hosted.rudderlabs.com"
),
rudderanalytics.page();

Expand Down
Loading

0 comments on commit 3ec5360

Please sign in to comment.