Skip to content

Commit ef57503

Browse files
committed
Revert "feat: Add upload image via miltipart (#105)"
This reverts commit 7090e38.
1 parent 7090e38 commit ef57503

20 files changed

+1019
-1861
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [ master ]
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
14-
- name: Setup Node.js environment
15-
uses: actions/setup-node@v2
16-
17-
- name: Install npm dependencies
18-
run: npm ci
19-
20-
- name: Unit tests
21-
run: npm run test:cov
22-
23-
- name: Codacy Coverage Reporter
24-
uses: codacy/[email protected]
25-
with:
26-
project-token: ${{ secrets.CODACY_TOKEN }}
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node.js environment
15+
uses: actions/setup-node@v1.4.4
16+
17+
- name: Install npm dependencies
18+
run: npm ci
19+
20+
- name: Unit tests
21+
run: npm run test:cov
22+
23+
- name: Codacy Coverage Reporter
24+
uses: codacy/[email protected]
25+
with:
26+
project-token: ${{ secrets.CODACY_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fetch-depth: 0
1515

1616
- name: Setup Node.js environment
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v1.4.4
1818

1919
- name: Install dependencies
2020
run: npm ci

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,10 @@ await vrt.track({
104104
name: "Image name",
105105

106106
// Base64 encoded string
107-
// Required or use imagePath
107+
// Required
108108
imageBase64: image,
109109

110-
// Path to image (service version api:4.14.0 or higher is required)
111-
// Required or use imageBase64
112-
imagePath: image,
113-
114-
// Allowed mismatch % (mismatched pixels to overal pixels count)
110+
// Allowed mismatch tollerance in %
115111
// Optional
116112
diffTollerancePercent: 0,
117113

lib/__data__/2.png

-80.1 KB
Binary file not shown.

lib/helpers/__snapshots__/dto.helper.spec.ts.snap

Lines changed: 0 additions & 247 deletions
This file was deleted.

lib/helpers/config.helper.spec.ts

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,36 +112,48 @@ describe("config.helper", () => {
112112
});
113113
});
114114
describe("validateConfig", () => {
115-
it("valid", () => {
116-
expect(() => validateConfig(initialConfig)).not.toThrowError();
117-
});
118-
119115
it.each([
120116
[
121117
{
122-
...initialConfig,
123118
apiUrl: "",
119+
branchName: "develop",
120+
project: "Default project",
121+
apiKey: "CPKVK4JNK24NVNPNGVFQ853HXXEG",
122+
enableSoftAssert: false,
123+
ciBuildId: "someCIBuildId",
124124
},
125125
"apiUrl is not specified",
126126
],
127127
[
128128
{
129-
...initialConfig,
129+
apiUrl: "http://localhost:4200",
130130
branchName: "",
131+
project: "Default project",
132+
apiKey: "CPKVK4JNK24NVNPNGVFQ853HXXEG",
133+
enableSoftAssert: false,
134+
ciBuildId: "someCIBuildId",
131135
},
132136
"branchName is not specified",
133137
],
134138
[
135139
{
136-
...initialConfig,
140+
apiUrl: "http://localhost:4200",
141+
branchName: "master",
137142
project: "",
143+
apiKey: "CPKVK4JNK24NVNPNGVFQ853HXXEG",
144+
enableSoftAssert: false,
145+
ciBuildId: "someCIBuildId",
138146
},
139147
"project is not specified",
140148
],
141149
[
142150
{
143-
...initialConfig,
151+
apiUrl: "http://localhost:4200",
152+
branchName: "master",
153+
project: "project",
144154
apiKey: "",
155+
enableSoftAssert: false,
156+
ciBuildId: "someCIBuildId",
145157
},
146158
"apiKey is not specified",
147159
],

0 commit comments

Comments
 (0)