Skip to content

Commit

Permalink
#48 add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellino-Palerme committed Jul 26, 2024
1 parent 79d0c8c commit cf17f63
Show file tree
Hide file tree
Showing 6 changed files with 319 additions and 37 deletions.
4 changes: 2 additions & 2 deletions components/DaughterTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const model = defineModel<{
area:number,
concentration:number}[]>({ required: true });
// -- headers of the table
const headers = ref([
const headers = [
{ title: t('header.nameMeta'), sortable:true, key: 'nameMeta' },
{ title: t('header.area'), sortable:true, key: 'area' },
{ title: t('header.concentration'), sortable:true, key: 'concentration' },
]);
];
// -- group by daughter solution
const groupBy = ref([{ sortable:true, key: 'idFile' }]);

Expand Down
2 changes: 1 addition & 1 deletion server/api/AddCalibCurve.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// This API is used to add a new calibration curve to the database.

import pg from "@/plugins/pg";
import pg from "pg";

export default defineEventHandler(async (event) => {
const body = await readBody(event);
Expand Down
2 changes: 1 addition & 1 deletion server/api/UpdateCalibCurve.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// this file is used to update the concentration of the daughters
// of a calibration curve

import pg from "@/plugins/pg";
import pg from "pg";

export default defineEventHandler(async (event) => {
const body = await readBody(event);
Expand Down
2 changes: 1 addition & 1 deletion test/component/ConfirmBox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { mount, config } from '@vue/test-utils';
import { expect, test, describe } from 'vitest';
import { vuetify4Test } from '../extra/vuetify4Test';
import { selectByText } from '../extra/selectByText';
import { selectByText } from '../extra/selectBy';
import ConfirmBox from '@/components/ConfirmBox.vue';

const vuetify = vuetify4Test();
Expand Down
Loading

0 comments on commit cf17f63

Please sign in to comment.