Skip to content

Commit

Permalink
Last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Apr 30, 2024
1 parent 50967ed commit f39da9d
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 51,352 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/test-environment-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ async function startServer() {
testQuestions.insertTestData();
}

startServer();
startServer();
7 changes: 3 additions & 4 deletions webapp/e2e/testQuestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function insertTestData() {
const categoryCollection = database.collection('categorias');
const answersCollection = database.collection('respuestas');
const typesCollection = database.collection('tipos');

// insertamos las categorias
await categoryCollection.insertMany([
{
Expand Down Expand Up @@ -95,12 +95,11 @@ async function insertTestData() {
testQuestions[0].diaria = formattedDate;

// insertamos las preguntas
await questionsCollection.insertMany(testQuestions);

await questionsCollection.insertMany(testQuestions);

} finally {
await client.close(); // Cerrar la conexión con la base de datos
}
}

module.exports = { insertTestData };
module.exports = { insertTestData };
Loading

0 comments on commit f39da9d

Please sign in to comment.