@triptease/tt-navbar 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.38
2
+ * @triptease/tt-navbar v0.0.39
3
3
  */
4
4
 
5
5
  // src/urlMappings.ts
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-navbar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tt-navbar",
6
- "version": "0.0.38",
6
+ "version": "0.0.39",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
package/src/TtNavbar.ts CHANGED
@@ -124,6 +124,7 @@ export class TtNavbar extends LitElement {
124
124
  const clientSpecificUrl = mappedUrl.includes('$CLIENT_KEY') ? mappedUrl.replace('$CLIENT_KEY', this.clientKey) : mappedUrl;
125
125
  const links = Object.values(this.allNavLinks);
126
126
  bestMatch = links.find(link => link.href.includes(clientSpecificUrl));
127
+ console.log({ mappedUrl, clientSpecificUrl, bestMatch });
127
128
  }
128
129
  }
129
130
 
@@ -288,10 +288,11 @@ describe('TtNavbar', () => {
288
288
  [`/chat/insights/${CLIENT_KEY}`, 'Channels'],
289
289
  [`/${CLIENT_KEY}/email`, 'Channels'],
290
290
  [`/settings/${CLIENT_KEY}/branding`, 'Group settings'],
291
+ [`/settings/${CLIENT_KEY}/price-check`, 'Group settings'],
291
292
  ];
292
293
 
293
294
  URLs.forEach(([route, text]) => {
294
- it.only(`should show the current page as active when link is ${route}`, async () => {
295
+ it(`should show the current page as active when link is ${route}`, async () => {
295
296
  // eslint-disable-next-line no-restricted-globals
296
297
  history.pushState({}, '', route); // 👈 mock URL
297
298