@rcompat/test 0.1.13 → 0.1.14

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.
@@ -8,8 +8,8 @@ export default class Assert<const Actual> {
8
8
  constructor(test: Test, actual?: Actual);
9
9
  equals(expected: unknown): this;
10
10
  nequals(expected: unknown): this;
11
- type<const Expected extends Equals<Actual, Expected> extends true ? unknown : Print<Actual>>(): this;
12
- nottype<const Expected extends Not<Equals<Actual, Expected>> extends true ? unknown : "actual and expected types are same">(): this;
11
+ type<const Expected extends Equals<Actual, Expected> extends true ? unknown : Print<Actual>>(_expected?: Expected): this;
12
+ nottype<const Expected extends Not<Equals<Actual, Expected>> extends true ? unknown : "actual and expected types are same">(_expected?: Expected): this;
13
13
  true(): this;
14
14
  false(): this;
15
15
  null(): this;
@@ -24,10 +24,10 @@ export default class Assert {
24
24
  this.#report(!equals(this.#actual, expected), expected);
25
25
  return this;
26
26
  }
27
- type() {
27
+ type(_expected) {
28
28
  return this;
29
29
  }
30
- nottype() {
30
+ nottype(_expected) {
31
31
  return this;
32
32
  }
33
33
  #static(expected) {
@@ -1,8 +1,6 @@
1
1
  import type Body from "#Body";
2
- import type StaticBody from "#StaticBody";
3
2
  declare const _default: {
4
3
  case(name: string, body: Body): void;
5
- static(_body: StaticBody): void;
6
4
  };
7
5
  export default _default;
8
6
  //# sourceMappingURL=index.d.ts.map
@@ -3,8 +3,5 @@ export default {
3
3
  case(name, body) {
4
4
  repository.put(name, body);
5
5
  },
6
- static(_body) {
7
- // noop
8
- },
9
6
  };
10
7
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rcompat/test",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Standard library testing",
5
5
  "bugs": "https://github.com/rcompat/rcompat/issues",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "directory": "packages/test"
16
16
  },
17
17
  "devDependencies": {
18
- "@rcompat/fs": "^0.12.2"
18
+ "@rcompat/fs": "^0.12.3"
19
19
  },
20
20
  "dependencies": {
21
21
  "@rcompat/record": "^0.7.0"
@@ -51,6 +51,7 @@
51
51
  },
52
52
  "scripts": {
53
53
  "build": "npm run clean && tsc",
54
- "clean": "rm -rf ./lib"
54
+ "clean": "rm -rf ./lib",
55
+ "test": "npm run build && npx proby"
55
56
  }
56
57
  }
@@ -1,5 +0,0 @@
1
- export default class StaticAssert<T> {
2
- constructor(_actual: T);
3
- equals<_Expected extends T>(): void;
4
- }
5
- //# sourceMappingURL=StaticAssert.d.ts.map
@@ -1,7 +0,0 @@
1
- export default class StaticAssert {
2
- constructor(_actual) { }
3
- // type check, no body
4
- equals() { }
5
- }
6
- ;
7
- //# sourceMappingURL=StaticAssert.js.map
@@ -1,4 +0,0 @@
1
- import type StaticAssert from "#StaticAssert";
2
- type StaticAsserter = <T>(actual: T) => StaticAssert<T>;
3
- export { StaticAsserter as default };
4
- //# sourceMappingURL=StaticAsserter.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=StaticAsserter.js.map
@@ -1,4 +0,0 @@
1
- import type StaticAsserter from "#StaticAsserter";
2
- type StaticBody = (asserter: StaticAsserter) => void;
3
- export { StaticBody as default };
4
- //# sourceMappingURL=StaticBody.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=StaticBody.js.map