feat(packages): add standalone auth and payment
This commit is contained in:
9
packages/auth/test/domain-context.test.mjs
Normal file
9
packages/auth/test/domain-context.test.mjs
Normal file
@@ -0,0 +1,9 @@
|
||||
import '@angular/compiler';
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { MARKETPLACE_DOMAIN_HEADER, normalizeMarketplaceDomain } from '../dist/fesm2022/marketplaces-auth.mjs';
|
||||
|
||||
test('sends the full normalized storefront host as project context', () => {
|
||||
assert.equal(MARKETPLACE_DOMAIN_HEADER, 'X-Marketplace-Domain');
|
||||
assert.equal(normalizeMarketplaceDomain(' Store1.Example.COM. '), 'store1.example.com');
|
||||
});
|
||||
Reference in New Issue
Block a user