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

qunit-harness

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qunit-harness - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

lib/vendor/qunit-1.20.0.css

2

package.json
{
"name": "qunit-harness",
"version": "0.2.0",
"version": "0.2.1",
"description": "A library for running qunit tests on a local machine and in the SauceLabs environment.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/AlexanderMoskovkin/qunit-harness",

@@ -76,2 +76,28 @@ # qunit-harness

##QUnit tests
####Wait for an async action
```js
window.QUnitGlobals.wait(condition); // returns Promise
// condition is a function
// The test will fail with the timeout error if condition returns 'false' within 3000 ms.
```
Example:
```js
asyncTest('test with wait', function () {
var resolved = false;
window.setTimeout(function () {
resolved = true;
}, 50);
window.QUnitGlobals.wait(function () {
return resolved;
})
.then(function () {
ok(true);
start();
});
});
```
####Get test server hostname

@@ -78,0 +104,0 @@ ```js

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