Skip to content

Commit b4c19f8

Browse files
committed
fixed tests
1 parent b2e6d1a commit b4c19f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/3.api.write/8.checksums.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ function calculate_checksum(message, salt, algorithm = "sha1") {
1717
}
1818

1919
describe("Testing checksum validations", function() {
20-
describe("Setting the checksum_salt for the app", function() {
20+
describe("Setting the salt for the app", function() {
2121
it("should successfully update the app", function(done) {
2222
API_KEY_ADMIN = testUtils.get("API_KEY_ADMIN");
2323
APP_ID = testUtils.get("APP_ID");
2424
APP_KEY = testUtils.get("APP_KEY");
2525

26-
const args = {app_id: APP_ID, checksum_salt: TEST_SALT};
26+
const args = {app_id: APP_ID, salt: TEST_SALT};
2727

2828
request
2929
.get("/i/apps/update")
@@ -35,7 +35,7 @@ describe("Testing checksum validations", function() {
3535
}
3636

3737
const responseObject = JSON.parse(response.text);
38-
responseObject.should.have.property("checksum_salt", TEST_SALT);
38+
responseObject.should.have.property("salt", TEST_SALT);
3939
setTimeout(done, 1000 * testUtils.testScalingFactor);
4040
});
4141
});
@@ -185,9 +185,9 @@ describe("Testing checksum validations", function() {
185185
});
186186
});
187187

188-
describe("Removing the checksum_salt for the app", function() {
188+
describe("Removing the salt for the app", function() {
189189
it("should successfully update it as an empty string", function(done) {
190-
const args = {app_id: APP_ID, checksum_salt: ""};
190+
const args = {app_id: APP_ID, salt: ""};
191191

192192
request
193193
.get("/i/apps/update")
@@ -199,7 +199,7 @@ describe("Testing checksum validations", function() {
199199
}
200200

201201
const responseObject = JSON.parse(response.text);
202-
responseObject.should.have.property("checksum_salt", "");
202+
responseObject.should.have.property("salt", "");
203203
setTimeout(done, 1000 * testUtils.testScalingFactor);
204204
});
205205
});

0 commit comments

Comments
 (0)