@travetto/test 4.0.7 → 4.1.1

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 ArcSine Technologies
3
+ Copyright (c) 2020 ArcSine Technologies
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/test",
3
- "version": "4.0.7",
3
+ "version": "4.1.1",
4
4
  "description": "Declarative test framework",
5
5
  "keywords": [
6
6
  "unit-testing",
@@ -27,15 +27,15 @@
27
27
  "directory": "module/test"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/base": "^4.0.6",
31
- "@travetto/registry": "^4.0.7",
32
- "@travetto/terminal": "^4.0.6",
33
- "@travetto/worker": "^4.0.6",
34
- "@travetto/yaml": "^4.0.6"
30
+ "@travetto/base": "^4.1.1",
31
+ "@travetto/registry": "^4.1.1",
32
+ "@travetto/terminal": "^4.1.1",
33
+ "@travetto/worker": "^4.1.1",
34
+ "@travetto/yaml": "^4.1.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^4.0.8",
38
- "@travetto/transformer": "^4.0.4"
37
+ "@travetto/cli": "^4.1.1",
38
+ "@travetto/transformer": "^4.1.1"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@travetto/transformer": {
@@ -16,7 +16,7 @@ declare module 'assert' {
16
16
 
17
17
  type StringFields<T> = {
18
18
  [K in Extract<keyof T, string>]:
19
- (T[K] extends string ? K : never) // eslint-disable-line @typescript-eslint/ban-types
19
+ (T[K] extends string ? K : never)
20
20
  }[Extract<keyof T, string>];
21
21
 
22
22
  /**
@@ -65,7 +65,7 @@ export class AssertCheck {
65
65
  fn = assertion.operator = 'ok';
66
66
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
67
67
  [assertion.actual, assertion.message] = args as [unknown, string];
68
- assertion.expected = { toClean: () => positive ? 'truthy' : 'falsy' };
68
+ assertion.expected = { toClean: (): string => positive ? 'truthy' : 'falsy' };
69
69
  common.state = 'should be';
70
70
  } else if (fn === 'includes') {
71
71
  assertion.operator = fn;
@@ -115,7 +115,7 @@ export class AssertCheck {
115
115
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
116
116
  case 'greaterThanEqual': assertFn((actual as number) >= (expected as number), message); break;
117
117
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
118
- case 'ok': assertFn(...args as [unknown, string]); break; // eslint-disable-line prefer-spread
118
+ case 'ok': assertFn(...args as [unknown, string]); break;
119
119
  default:
120
120
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
121
121
  if (fn && assert[fn as keyof typeof assert]) { // Assert call