Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-secure-signal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build
run: npm run build:esp -- --mode=${{ matrix.target }}
run: npm run build:secureSignals -- --mode=${{ matrix.target }}

# Upload UID2 Secure Signals Files
- name: Upload UID2 Secure Signals Files
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/publish-cstg-example.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/publish-js-sdk-example.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/publish-secure-signal-examples.yml

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/release-secure-signals-client-side-uid2.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/release-secure-signals-react-uid2.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"watch": "webpack watch --mode=development",
"webpack-dev-server": "webpack-dev-server --config webpack-dev-server.config.js --hot --port 9091",
"uid2-examples": "webpack --mode=development --env outputToExamples=true",
"build:esp": "webpack --env espOnly=true",
"build:secureSignals": "webpack --env secureSignalsOnly=true",
"createCA": "tsx createCA.ts",
"localtest": "cd localtest && tsx server.ts"
},
Expand Down
10 changes: 5 additions & 5 deletions src/integrationTests/euidSdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ProductDetails } from '../product';
let callback: any;
let asyncCallback: jest.Mock<CallbackHandler>;
let xhrMock: any;
let uid2ESP: UidSecureSignalProvider;
let uid2SecureSignals: UidSecureSignalProvider;
let secureSignalProvidersPushMock: jest.Mock<(p: any) => Promise<void>>;
let getAdvertisingTokenMock: jest.Mock<() => Promise<string>>;
getAdvertisingTokenMock = jest.fn<() => Promise<string>>();
Expand Down Expand Up @@ -115,11 +115,11 @@ describe('when a callback is provided', () => {
});
});

describe('when getUid2AdvertisingToken exists and returns valid advertisingToken', () => {
test('should send signal to Google ESP', async () => {
describe('when getuid2SecureSignalsAdvertisingToken exists and returns valid advertisingToken', () => {
test('should send signal to Google Secure Signals', async () => {
window.getEuidAdvertisingToken = getAdvertisingTokenMock;
getAdvertisingTokenMock.mockReturnValue(Promise.resolve('testToken'));
uid2ESP = new UidSecureSignalProvider(false, true);
uid2SecureSignals = new UidSecureSignalProvider(false, true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably be EUID here, also in the test description

expect(secureSignalProvidersPushMock).toHaveBeenCalledTimes(1);
expect(secureSignalProvidersPushMock).toHaveBeenCalledWith(
expect.objectContaining({
Expand All @@ -131,7 +131,7 @@ describe('when a callback is provided', () => {
});

describe('When SDK initialized after both SDK and SS script loaded - EUID', () => {
test('should send identity to Google ESP', async () => {
test('should send identity to Google Secure Signals', async () => {
__euidInternalHandleScriptLoad();
__euidSSProviderScriptLoad();
(sdkWindow.__euid as EUID).init({ identity });
Expand Down
Loading
Loading