zation-assured 3.0.0-dev.3 → 3.0.0-dev.4

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.
@@ -10,7 +10,7 @@ export declare class WhenBuilder<C extends Client<any, any>> {
10
10
  private readonly _client;
11
11
  private readonly _test;
12
12
  constructor(client: C, test: Test);
13
- static when<C extends Client<any, any>>(client: C, itShould?: string): WhenBuilder<C>;
13
+ static when<C extends Client<any, any>>(client: C, it?: string): WhenBuilder<C>;
14
14
  /**
15
15
  * @description
16
16
  * Creates a request test action.
@@ -15,8 +15,8 @@ class WhenBuilder {
15
15
  this._client = client;
16
16
  this._test = test;
17
17
  }
18
- static when(client, itShould) {
19
- return new WhenBuilder(client, new test_1.Test(itShould));
18
+ static when(client, it) {
19
+ return new WhenBuilder(client, new test_1.Test(it));
20
20
  }
21
21
  // noinspection JSUnusedGlobalSymbols
22
22
  /**
@@ -2,8 +2,8 @@ declare type Action = () => Promise<void> | void;
2
2
  export declare class Test {
3
3
  private readonly _subTests;
4
4
  private currentSubTest;
5
- private readonly _description?;
6
- constructor(description?: string);
5
+ private readonly _it?;
6
+ constructor(it?: string);
7
7
  newSubTest(): void;
8
8
  beforeTest(action: Action): void;
9
9
  test(action: Action): void;
@@ -17,9 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Test = void 0;
18
18
  const waitSymbol = Symbol();
19
19
  class Test {
20
- constructor(description) {
20
+ constructor(it) {
21
21
  this._subTests = [];
22
- this._description = description;
22
+ this._it = it;
23
23
  this.newSubTest();
24
24
  }
25
25
  newSubTest() {
@@ -49,11 +49,11 @@ class Test {
49
49
  }
50
50
  execute() {
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
- if (this._description != null) {
52
+ if (this._it != null) {
53
53
  if (global['it'] == null)
54
54
  throw new Error("Please install a test runner like mocha or jest.");
55
55
  return new Promise((resolve, reject) => {
56
- global['it'](this._description, () => __awaiter(this, void 0, void 0, function* () {
56
+ global['it'](this._it, () => __awaiter(this, void 0, void 0, function* () {
57
57
  try {
58
58
  yield this._run();
59
59
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zation-assured",
3
- "version": "3.0.0-dev.3",
3
+ "version": "3.0.0-dev.4",
4
4
  "license": "MIT",
5
5
  "description": "Library For Testing Zation Servers",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,7 @@
41
41
  "@types/node": "^12.7.2",
42
42
  "chai": "^4.3.3",
43
43
  "path": "0.12.7",
44
- "zation-client": "^3.0.0-dev.4",
44
+ "zation-client": "^3.0.0-dev.5",
45
45
  "queric": "^2.0.0"
46
46
  },
47
47
  "devDependencies": {