New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

odyssey-test-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

odyssey-test-utils

Make assertions against the HTML document on load

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

Odyssey Test Utils

Make assertions against the HTML document on load

Installation

npm i -D odyssey-test-utils

Usage

HTML

Add the following web components to your page.

<test-case-wrapper>
  <test-case id="test-1" description="should pass"></test-case>
  <test-case id="test-2" description="should fail"></test-case>
</test-case-wrapper>

JavaScript

Provide the following JavaScript to your file

import "./test-case.js";
import "./test-case-wrapper.js";

const test1 = document.querySelector("#test-1");

test1.test(() => {
  // Replace this with whatever assertions you need, as long the function returns a boolean
  return true;
});

FAQs

Package last updated on 13 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts