Skip to content

Commit

Permalink
solved 12
Browse files Browse the repository at this point in the history
  • Loading branch information
PayalKumari10 committed Apr 25, 2024
1 parent 17ae547 commit d888656
Show file tree
Hide file tree
Showing 19 changed files with 1,430 additions and 772 deletions.
204 changes: 129 additions & 75 deletions tests/step-11/index.test.js

Large diffs are not rendered by default.

209 changes: 134 additions & 75 deletions tests/step-12/index.test.js

Large diffs are not rendered by default.

202 changes: 131 additions & 71 deletions tests/step-13/index.test.js

Large diffs are not rendered by default.

195 changes: 130 additions & 65 deletions tests/step-14/index.test.js

Large diffs are not rendered by default.

237 changes: 153 additions & 84 deletions tests/step-15/index.test.js

Large diffs are not rendered by default.

218 changes: 143 additions & 75 deletions tests/step-16/index.test.js

Large diffs are not rendered by default.

217 changes: 143 additions & 74 deletions tests/step-17/index.test.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions tests/step-17/insertExecuter.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { executeINSERTQuery } = require('../../src/queryExecutor');
const { readCSV, writeCSV } = require('../../src/csvReader');
const { executeINSERTQuery } = require("../../src/queryExecutor");
const { readCSV, writeCSV } = require("../../src/csvReader");
const fs = require('fs');

// Helper function to create grades.csv with initial data
Expand All @@ -14,7 +14,8 @@ async function createGradesCSV() {
}

// Test to INSERT a new grade and verify
test('Execute INSERT INTO Query for grades.csv', async () => {
test(
"Execute INSERT INTO Query for grades.csv", async () => {
// Create grades.csv with initial data
await createGradesCSV();

Expand Down
7 changes: 4 additions & 3 deletions tests/step-18/deleteExecutor.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { executeDELETEQuery } = require('../../src/queryExecutor');
const { readCSV, writeCSV } = require('../../src/csvReader');
const { executeDELETEQuery } = require("../../src/queryExecutor");
const { readCSV, writeCSV } = require("../../src/csvReader");
const fs = require('fs');

// Helper function to create courses.csv with initial data
Expand All @@ -13,7 +13,8 @@ async function createCoursesCSV() {
}

// Test to DELETE a course and verify
test('Execute DELETE FROM Query for courses.csv', async () => {
test(
"Execute DELETE FROM Query for courses.csv", async () => {
// Create courses.csv with initial data
await createCoursesCSV();

Expand Down
Loading

0 comments on commit d888656

Please sign in to comment.