10 lines
451 B
JavaScript
10 lines
451 B
JavaScript
|
|
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');
|
||
|
|
});
|