mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 03:44:20 +03:00
remove extra console.log lines
This commit is contained in:
@@ -79,7 +79,6 @@ describe("getStatus", () => {
|
|||||||
it("Should be able to get loadavg only", (done) => {
|
it("Should be able to get loadavg only", (done) => {
|
||||||
client.get(`${endpoint}/loadavg`)
|
client.get(`${endpoint}/loadavg`)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res.data);
|
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
assert.ok(Number(res.data[0]) >= 0);
|
assert.ok(Number(res.data[0]) >= 0);
|
||||||
assert.ok(Number(res.data[1]) >= 0);
|
assert.ok(Number(res.data[1]) >= 0);
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ describe("setUsername", () => {
|
|||||||
it("Should be able to set username that has never been set", (done) => {
|
it("Should be able to set username that has never been set", (done) => {
|
||||||
postSetUserName(user00PrivateUserID, username00)
|
postSetUserName(user00PrivateUserID, username00)
|
||||||
.then(async res => {
|
.then(async res => {
|
||||||
console.log(res.data);
|
|
||||||
const usernameInfo = await getUsernameInfo(getHash(user00PrivateUserID));
|
const usernameInfo = await getUsernameInfo(getHash(user00PrivateUserID));
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
assert.strictEqual(usernameInfo.userName, username00);
|
assert.strictEqual(usernameInfo.userName, username00);
|
||||||
|
|||||||
@@ -299,7 +299,6 @@ describe("voteOnSponsorTime", () => {
|
|||||||
.then(async res => {
|
.then(async res => {
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
const row = await getSegmentCategory(UUID);
|
const row = await getSegmentCategory(UUID);
|
||||||
console.log(row.category);
|
|
||||||
assert.strictEqual(row.category, category);
|
assert.strictEqual(row.category, category);
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
@@ -314,7 +313,6 @@ describe("voteOnSponsorTime", () => {
|
|||||||
.then(async res => {
|
.then(async res => {
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
const row = await getSegmentCategory(UUID);
|
const row = await getSegmentCategory(UUID);
|
||||||
console.log(row.category);
|
|
||||||
assert.strictEqual(row.category, "intro");
|
assert.strictEqual(row.category, "intro");
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user