@supertape/operator-stub 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/stub.d.ts +12 -12
  2. package/package.json +6 -5
package/lib/stub.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {Stub} from '@cloudcmd/stub';
2
2
 
3
- type Result = {
3
+ type OperationResult = {
4
4
  is: boolean,
5
5
  expected: unknown,
6
6
  actual: unknown,
@@ -9,16 +9,16 @@ type Result = {
9
9
  export function stub(arg?: unknown): Stub;
10
10
 
11
11
  export interface OperatorStub {
12
- called: (fn: Stub, message?: string) => Result
13
- notCalled: (fn: Stub, message?: string) => Result
14
- calledWith: (fn: Stub, args: unknown[], message?: string) => Result;
15
- calledWithNoArgs: (fn: Stub, message?: string) => Result;
16
- calledCount: (fn: Stub, count: number, message?: string) => Result;
17
- calledOnce: (fn: Stub, message?: string) => Result;
18
- calledTwice: (fn: Stub, message?: string) => Result;
19
- calledWithNew: (fn: Stub, message?: string) => Result;
20
- calledBefore: (fn1: Stub, fn2: Stub, message?: string) => Result;
21
- calledAfter: (fn1: Stub, fn2: Stub, message?: string) => Result;
22
- calledInOrder: (fns: Stub[], message?: string) => Result;
12
+ called: (fn: Stub, message?: string) => OperationResult
13
+ notCalled: (fn: Stub, message?: string) => OperationResult
14
+ calledWith: (fn: Stub, args: unknown[], message?: string) => OperationResult;
15
+ calledWithNoArgs: (fn: Stub, message?: string) => OperationResult;
16
+ calledCount: (fn: Stub, count: number, message?: string) => OperationResult;
17
+ calledOnce: (fn: Stub, message?: string) => OperationResult;
18
+ calledTwice: (fn: Stub, message?: string) => OperationResult;
19
+ calledWithNew: (fn: Stub, message?: string) => OperationResult;
20
+ calledBefore: (fn1: Stub, fn2: Stub, message?: string) => OperationResult;
21
+ calledAfter: (fn1: Stub, fn2: Stub, message?: string) => OperationResult;
22
+ calledInOrder: (fns: Stub[], message?: string) => OperationResult;
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@supertape/operator-stub",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "supertape stub operator",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
7
7
  "main": "./lib/stub.js",
8
+ "commitType": "colon",
8
9
  "release": false,
9
10
  "tag": false,
10
11
  "changelog": false,
@@ -41,13 +42,13 @@
41
42
  "c8": "^7.3.5",
42
43
  "check-dts": "^0.6.5",
43
44
  "eslint": "^8.0.0-beta.0",
44
- "eslint-plugin-node": "^11.1.0",
45
- "eslint-plugin-putout": "^14.0.0",
45
+ "eslint-plugin-n": "^15.2.5",
46
+ "eslint-plugin-putout": "^16.0.1",
46
47
  "madrun": "^9.0.0",
47
48
  "mock-require": "^3.0.2",
48
49
  "nodemon": "^2.0.2",
49
- "putout": "^25.0.0",
50
- "supertape": "^7.0.0",
50
+ "putout": "^27.2.0",
51
+ "supertape": "^8.0.0",
51
52
  "typescript": "^4.4.4"
52
53
  },
53
54
  "license": "MIT",