• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

prebid / Prebid.js / 22873923570

09 Mar 2026 08:44PM UTC coverage: 96.327% (-0.001%) from 96.328%
22873923570

push

github

web-flow
MediaEyes Bid Adapter : Support Video Type (#14565)

* MediaEyes Bid Adapter : Update Support Video Type

* fix eslint

* modifications as suggested

* improve code as suggested

56971 of 69697 branches covered (81.74%)

50 of 51 new or added lines in 2 files covered. (98.04%)

465 existing lines in 60 files now uncovered.

217514 of 225807 relevant lines covered (96.33%)

70.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.18
/test/spec/modules/growthCodeIdSystem_spec.js
1
import { growthCodeIdSubmodule } from 'modules/growthCodeIdSystem.js';
2
import * as utils from 'src/utils.js';
3
import { server } from 'test/mocks/xhr.js';
4
import { uspDataHandler } from 'src/adapterManager.js';
5
import { expect } from 'chai';
6
import { getStorageManager } from '../../../src/storageManager.js';
7
import { MODULE_TYPE_UID } from '../../../src/activities/modules.js';
8

9
const MODULE_NAME = 'growthCodeId';
1✔
10
const EIDS = '[{"source":"domain.com","uids":[{"id":"8212212191539393121","ext":{"stype":"ppuid"}}]}]';
1✔
11
const GCID = 'e06e9e5a-273c-46f8-aace-6f62cf13ea71'
1✔
12

13
const GCID_EID = '{"id": [{"source": "growthcode.io", "uids": [{"atype": 3,"id": "e06e9e5a-273c-46f8-aace-6f62cf13ea71"}]}]}'
1✔
14
const GCID_EID_EID = '{"id": [{"source": "growthcode.io", "uids": [{"atype": 3,"id": "e06e9e5a-273c-46f8-aace-6f62cf13ea71"}]},{"source": "domain.com", "uids": [{"id": "8212212191539393121", "ext": {"stype":"ppuid"}}]}]}'
1✔
15

16
const storage = getStorageManager({ moduleType: MODULE_TYPE_UID, moduleName: MODULE_NAME });
1✔
17

18
const getIdParams = {
1✔
19
  params: {
20
    pid: 'TEST01',
21
    publisher_id: '_sharedid',
22
    publisher_id_storage: 'html5',
23
  }
24
};
25

26
describe('growthCodeIdSystem', () => {
1✔
27
  let logErrorStub;
28

29
  beforeEach(function () {
1✔
30
    if (utils.logError.restore) {
5!
UNCOV
31
      utils.logError.restore();
×
32
    }
33
    logErrorStub = sinon.stub(utils, 'logError');
5✔
34
    storage.setDataInLocalStorage('gcid', GCID, null);
5✔
35
    storage.setDataInLocalStorage('customerEids', EIDS, null);
5✔
36
  });
37

38
  afterEach(function () {
1✔
39
    if (logErrorStub && logErrorStub.restore) {
5!
40
      logErrorStub.restore();
5✔
UNCOV
41
    } else if (utils.logError.restore) {
×
UNCOV
42
      utils.logError.restore();
×
43
    }
44
  });
45

46
  describe('name', () => {
1✔
47
    it('should expose the name of the submodule', () => {
1✔
48
      expect(growthCodeIdSubmodule.name).to.equal('growthCodeId');
1✔
49
    });
50
  });
51

52
  it('test return of GCID', function () {
1✔
53
    let ids;
54
    ids = growthCodeIdSubmodule.getId();
1✔
55
    expect(ids).to.deep.equal(JSON.parse(GCID_EID));
1✔
56
  });
57

58
  it('test return of the GCID and an additional EID', function () {
1✔
59
    let ids;
60
    ids = growthCodeIdSubmodule.getId({
1✔
61
      params: {
62
        customerEids: 'customerEids',
63
      }
64
    });
65
    expect(ids).to.deep.equal(JSON.parse(GCID_EID_EID));
1✔
66
  });
67

68
  it('test return of the GCID and an additional EID (bad Local Store name)', function () {
1✔
69
    let ids;
70
    ids = growthCodeIdSubmodule.getId({
1✔
71
      params: {
72
        customerEids: 'customerEidsBad',
73
      }
74
    });
75
    expect(ids).to.deep.equal(JSON.parse(GCID_EID));
1✔
76
  });
77

78
  it('test decode function)', function () {
1✔
79
    let ids;
80
    ids = growthCodeIdSubmodule.decode(GCID, {
1✔
81
      params: {
82
        customerEids: 'customerEids',
83
      }
84
    });
85
    expect(ids).to.deep.equal(JSON.parse('{"growthCodeId":"' + GCID + '"}'));
1✔
86
  });
87
})
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc