Skip to content

Commit da10c4b

Browse files
Copilotmathiasrw
andauthored
Clean up test output (#2319)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
1 parent 1ca7be8 commit da10c4b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

test/test1009.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ describe('Test 1009 - Foreign key error message with table name', function () {
2929
alasql('INSERT INTO tableB VALUES (2, 20)');
3030
assert.fail('Should have thrown an error for foreign key violation');
3131
} catch (err) {
32-
console.log('Error message:', err.message);
3332
// The error message should include information about what key and table failed
3433
assert(err.message.includes('Foreign key'), 'Error should mention foreign key');
3534
assert(err.message.includes('20'), 'Error should include the key value');
@@ -55,7 +54,6 @@ describe('Test 1009 - Foreign key error message with table name', function () {
5554
alasql('INSERT INTO tableD VALUES (2, 99)');
5655
assert.fail('Should have thrown an error for foreign key violation');
5756
} catch (err) {
58-
console.log('Error message:', err.message);
5957
assert(err.message.includes('Foreign key'), 'Error should mention foreign key');
6058
assert(err.message.includes('99'), 'Error should include the key value');
6159
assert(err.message.includes('tableC'), 'Error should include the table name');
@@ -79,7 +77,6 @@ describe('Test 1009 - Foreign key error message with table name', function () {
7977
alasql('INSERT INTO tableF VALUES (2, 99, 99)');
8078
assert.fail('Should have thrown an error for foreign key violation');
8179
} catch (err) {
82-
console.log('Error message:', err.message);
8380
assert(err.message.includes('Foreign key'), 'Error should mention foreign key');
8481
assert(err.message.includes('99'), 'Error should include the key value');
8582
assert(err.message.includes('tableE'), 'Error should include the table name');

test/test167B.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
1212
var res3 = alasql('SELECT COLUMN DISTINCT _ FROM ?', [data]);
1313
var res4 = alasql('SEARCH DISTINCT(/) FROM ?', [data]);
1414

15-
console.log('res1 (SELECT *):', JSON.stringify(res1));
16-
console.log('res2 (SELECT DISTINCT *):', JSON.stringify(res2));
17-
console.log('res3 (SELECT COLUMN DISTINCT _):', JSON.stringify(res3));
18-
console.log('res4 (SEARCH DISTINCT(/)):', JSON.stringify(res4));
19-
2015
// res1 should have all 3 items
2116
assert.equal(res1.length, 3);
2217

@@ -32,9 +27,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
3227
var res3 = alasql('SELECT COLUMN DISTINCT _ FROM ?', [data]);
3328
var res4 = alasql('SEARCH DISTINCT(/) FROM ?', [data]);
3429

35-
console.log('res3 (SELECT COLUMN DISTINCT _) with mixed data:', JSON.stringify(res3));
36-
console.log('res4 (SEARCH DISTINCT(/)) with mixed data:', JSON.stringify(res4));
37-
3830
// Should return 2 distinct objects: {a:1} and {b:2}
3931
assert.equal(res3.length, 2, 'SELECT COLUMN DISTINCT _ should return 2 items');
4032
assert.equal(res4.length, 2, 'SEARCH DISTINCT(/) should return 2 items');
@@ -57,9 +49,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
5749
var res2 = alasql('SELECT DISTINCT * FROM ?', [data]);
5850
var res4 = alasql('SEARCH DISTINCT(/) FROM ?', [data]);
5951

60-
console.log('res2 (SELECT DISTINCT *):', JSON.stringify(res2));
61-
console.log('res4 (SEARCH DISTINCT(/)):', JSON.stringify(res4));
62-
6352
// Results should be the same
6453
assert.deepEqual(
6554
res2,
@@ -72,7 +61,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
7261
var data = [1, 2, 1, 3, 2];
7362

7463
var res = alasql('SELECT COLUMN DISTINCT _ FROM ?', [data]);
75-
console.log('SELECT COLUMN DISTINCT _ from array:', JSON.stringify(res));
7664

7765
// Should return distinct values: [1, 2, 3]
7866
assert.equal(res.length, 3, 'Should return 3 distinct values');

0 commit comments

Comments
 (0)