![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Test without efforts.
import test, { ok, is, not, throws } from 'tst.js'
test('pass', () => {
ok(true);
ok(true, 'this time with an optional message');
ok('not true, but truthy enough');
is(1 + 1, 2);
is(Math.max(1, 2, 3), 3);
is({}, {})
throws(() => {
throw new Error('oh no!');
}, /oh no!/);
})
test('fail', () => {
is(42, '42');
is({}, {x:1});
})
Creates output in console:
test.skip
− bypass test, mutes outputtest.only
− run only the indicated test, can be multipletest.todo
− bypass test, indicate WIP signtest.demo
− demo run, skips failed assertions.ok(a, msg?)
− generic truthfulness assertis(a, b, msg?)
− assert with Object.is
for primitives and deepEqual
for objectsnot(a, b, msg?)
- assert with !Object.is
for primitives and !deepEqual
for objectsany(a, [a, b, c], msg?)
− assert with optional resultsalmost(a, b, eps, msg?)
− assert approximate value/arraysame(listA, listB, msg?)
− assert same members of a list/set/map/objectthrows(fn, msg?)
− fn must throwpass(msg)
, fail(msf)
− pass or fail the whole test.Testing should not involve maintaining test runner.
It should be simple as tap/tape, working in browser/node, ESM, with nice l&f, done in a straightforward way.
I wasn't able to find such test runner that so I had to create one.
FAQs
Tests without efforts
The npm package tst receives a total of 45 weekly downloads. As such, tst popularity was classified as not popular.
We found that tst demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.