UNPKG

@grafana/faro-core

Version:
17 lines 630 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sourceMaps_1 = require("./sourceMaps"); describe('sourceMapUpload utils', function () { beforeAll(function () { delete global.__faroBundleId_foo; }); afterAll(function () { delete global.__faroBundleId_foo; }); it('can get the bundle ID from the global object', function () { expect((0, sourceMaps_1.getBundleId)('foo')).toBeUndefined(); global.__faroBundleId_foo = 'bar'; expect((0, sourceMaps_1.getBundleId)('foo')).toEqual('bar'); }); }); //# sourceMappingURL=sourceMaps.test.js.map