Socket
Socket
Sign inDemoInstall

wait-for-expect

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

13

lib/index.d.ts

@@ -1,2 +0,11 @@

declare const _default: ((expectation: () => void, timeout?: number, interval?: number) => Promise<{}>) & {
/**
* Waits for the expectation to pass and returns a Promise
*
* @param expectation Function Expectation that has to complete without throwing
* @param timeout Number Maximum wait interval, 4500ms by default
* @param interval Number Wait-between-retries interval, 50ms by default
* @return Promise Promise to return a callback result
*/
declare const waitForExpect: {
(expectation: () => void, timeout?: number, interval?: number): Promise<{}>;
defaults: {

@@ -7,2 +16,2 @@ timeout: number;

};
export default _default;
export default waitForExpect;

6

lib/index.js

@@ -58,8 +58,6 @@ "use strict";

var _default = Object.assign(waitForExpect, {
defaults: defaults
});
waitForExpect.defaults = defaults;
var _default = waitForExpect;
exports.default = _default;
module.exports = exports.default;
module.exports.default = exports.default;

@@ -9,3 +9,3 @@ declare namespace jest {

}
declare function toBeInRange<T>(received: number, {min, max}: {
declare function toBeInRange<T>(received: number, { min, max }: {
min: number;

@@ -12,0 +12,0 @@ max: number;

{
"name": "wait-for-expect",
"version": "3.0.0",
"version": "3.0.1",
"description": "Wait for expectation to be true, useful for integration and end to end testing",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"scripts": {
"test": "eslint src/**/*.ts && jest",
"test": "eslint --report-unused-disable-directives src/**/*.ts && jest",
"build": "tsc --emitDeclarationOnly && babel src --out-dir lib --extensions \".ts,.tsx\"",

@@ -49,11 +49,12 @@ "build:watch": "npm run build -- --watch",

"@types/typescript": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^2.5.0",
"@typescript-eslint/parser": "^2.5.0",
"babel-core": "^7.0.0-0",
"babel-jest": "^22.4.3",
"babel-plugin-add-module-exports": "^1.0.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-typescript": "^0.11.0",
"jest": "^22.4.3",

@@ -63,4 +64,3 @@ "jest-serializer-ansi": "^1.0.3",

"semantic-release": "^15.12.0",
"typescript": "^2.7.2",
"typescript-eslint-parser": "^14.0.0"
"typescript": "~3.2.4"
},

@@ -67,0 +67,0 @@ "jest": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc