New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
28
Versions
672
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

4

package.json
{
"name": "@salesforcedevs/docs-components",
"version": "0.6.0",
"version": "0.7.0",
"description": "Docs Lightning web components for DSC",

@@ -17,3 +17,3 @@ "license": "MIT",

},
"gitHead": "58b06bc8a8006d832bb2e25999423404bee9e523"
"gitHead": "924c919f0e9214fffb628926b1ac0ad73f9304b7"
}

@@ -14,2 +14,3 @@ import Button from "dx/button";

import { Option } from "typings/custom";
import { track } from "dx/instrumentation";

@@ -20,5 +21,10 @@ const EXPECTED_QUERY_TABLET = "(max-width: 980px)";

jest.mock("dx/instrumentation");
const TAG = "doc-header";
const render = createRenderComponent(TAG, Header);
const GTM_EVENT_NAME = "custEv_signUpClick";
const SIGN_UP_LABEL = "Sign Up";
const assertMediaMatchCalls = () => {

@@ -89,2 +95,6 @@ expect(window.matchMedia).toBeCalledTimes(3);

describe("desktop", () => {
afterEach(() => {
jest.clearAllMocks();
});
it("renders", () => {

@@ -288,2 +298,17 @@ const element = render();

});
it("signup button track is beign called", () => {
const element = render(mockPropsDevelopers);
const button: HTMLElement = element.shadowRoot.querySelector(
"dx-button"
);
button.click();
expect(track).toBeCalledTimes(1);
expect(track).toBeCalledWith(button, GTM_EVENT_NAME, {
clickText: SIGN_UP_LABEL
});
});
});

@@ -290,0 +315,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc