@amanat-qa/utils-backend 5.1.4 → 5.2.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.
@@ -22,7 +22,7 @@ var testsDirectory = fs.existsSync(suitesDirectory) ? suitesDirectory : specsDir
22
22
  var testFiles = fs.readdirSync(testsDirectory);
23
23
  var jobs = testFiles.map(function (spec, index) {
24
24
  return _defineProperty({}, "API tests ".concat(index + 1), {
25
- image: 'node:latest',
25
+ image: "node:".concat(process.version.replace(/^v+/, '')),
26
26
  stage: 'test',
27
27
  variables: {
28
28
  SPEC_PATTERN: index + 1
@@ -70,14 +70,10 @@ var TimeUtils = /*#__PURE__*/function () {
70
70
  return moment(date, DateFormats.MDY).format(DateFormats.DMY);
71
71
  }
72
72
  }, {
73
- key: "dateFormats",
74
- value: function dateFormats() {
75
- return DateFormats;
76
- }
77
- }, {
78
- key: "testMethod",
79
- value: function testMethod() {
80
- return DateFormats;
73
+ key: "today",
74
+ value: function today() {
75
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DateFormats.DMY;
76
+ return moment().format(format);
81
77
  }
82
78
  }]);
83
79
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amanat-qa/utils-backend",
3
- "version": "5.1.4",
3
+ "version": "5.2.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },