Skip to content

Commit

Permalink
Merge pull request #11 from rajeevkumar-nr/NR-320036-Unit_test_jest
Browse files Browse the repository at this point in the history
NR-320036-Added unit test for Index and tracker file
  • Loading branch information
asllop authored Oct 8, 2024
2 parents 0341b50 + db678b0 commit a47a73e
Show file tree
Hide file tree
Showing 2 changed files with 469 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/__test__/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as nrvideo from "newrelic-video-core";
import Tracker from "../tracker";

const exportedModule = require("../index");

describe("nrvideo ShakaTracker Assignment", () => {
it("should assign Tracker to nrvideo.ShakaTracker", () => {
expect(nrvideo.ShakaTracker).toBe(Tracker);
});

it("should export the modified nrvideo object", () => {
expect(exportedModule).toBe(nrvideo);
});
});
Loading

0 comments on commit a47a73e

Please sign in to comment.