feat: fixed rate #12
Annotations
10 errors
src/components/__tests__/Mp3000TableHeader.vue.test.ts > Mp3000TableHeader.vue > toggles icons:
frontend/src/components/__tests__/Mp3000TableHeader.vue.test.ts#L32
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ src/components/__tests__/Mp3000TableHeader.vue.test.ts:32:46
|
src/composables/__test__/useSorter.test.ts > useSorter.ts > handles props asc:
frontend/src/composables/__test__/useSorter.test.ts#L144
AssertionError: expected null to be truthy
- Expected:
null
+ Received:
false
❯ src/composables/__test__/useSorter.test.ts:144:34
|
src/views/companies/__tests__/CompaniesView.vue.test.ts > CompaniesView.vue > sorts companies:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ { columnName: 'Nom', …(2) } ]
- Expected
+ Received
- Array [
- Object {
- "columnIdx": 0,
- "columnName": "Nom",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/companies/__tests__/CompaniesView.vue.test.ts:34:11
|
src/views/contacts/__tests__/ContactsView.vue.test.ts > ContactsView.vue > sorts contacts:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ { columnName: 'Nom', …(2) }, …(4) ]
- Expected
+ Received
- Array [
- Object {
- "columnIdx": 0,
- "columnName": "Nom",
- "expectedIdsOrder": Array [
- 1,
- 3,
- 2,
- ],
- },
- Object {
- "columnIdx": 1,
- "columnName": "Client",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 2,
- "columnName": "Email",
- "expectedIdsOrder": Array [
- 2,
- 3,
- 1,
- ],
- },
- Object {
- "columnIdx": 3,
- "columnName": "Téléphone",
- "expectedIdsOrder": Array [
- 1,
- 3,
- 2,
- ],
- },
- Object {
- "columnIdx": 4,
- "columnName": "Commentaires",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/contacts/__tests__/ContactsView.vue.test.ts:35:11
|
src/views/costs/__tests__/CostsView.vue.test.ts > CostsView.vue > sorts costs:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ { columnName: 'Type', …(2) }, …(3) ]
- Expected
+ Received
- Array [
- Object {
- "columnIdx": 0,
- "columnName": "Type",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 1,
- "columnName": "Date",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 2,
- "columnName": "Montant",
- "expectedIdsOrder": Array [
- 2,
- 1,
- 3,
- ],
- },
- Object {
- "columnIdx": 3,
- "columnName": "Description",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/costs/__tests__/CostsView.vue.test.ts:38:11
|
src/views/opportunities/__tests__/OpportunitiesView.vue.test.ts > OpportunitiesView.vue > sorts opportunities:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ { columnName: 'Ref', …(2) }, …(6) ]
- Expected
+ Received
- Array [
- Object {
- "columnIdx": 0,
- "columnName": "Ref",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 1,
- "columnName": "Client",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 2,
- "columnName": "Statut",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 3,
- "columnName": "Montant",
- "expectedIdsOrder": Array [
- 2,
- 1,
- 3,
- ],
- },
- Object {
- "columnIdx": 4,
- "columnName": "Jours vendus",
- "expectedIdsOrder": Array [
- 2,
- 1,
- 3,
- ],
- },
- Object {
- "columnIdx": 5,
- "columnName": "Jours travaillés",
- "expectedIdsOrder": Array [
- 3,
- 1,
- 2,
- ],
- },
- Object {
- "columnIdx": 6,
- "columnName": "Création",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/opportunities/__tests__/OpportunitiesView.vue.test.ts:39:11
|
src/views/tenders/__tests__/TendersView.vue.test.ts > TendersView.vue > sorts tenders:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ …(7) ]
- Expected
+ Received
- Array [
- Object {
- "columnIdx": 0,
- "columnName": "Version",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 1,
- "columnName": "Opportunité",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 2,
- "columnName": "Client",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 3,
- "columnName": "Statut",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- Object {
- "columnIdx": 4,
- "columnName": "Montant",
- "expectedIdsOrder": Array [
- 2,
- 1,
- 3,
- ],
- },
- Object {
- "columnIdx": 5,
- "columnName": "Jours vendus",
- "expectedIdsOrder": Array [
- 2,
- 1,
- 3,
- ],
- },
- Object {
- "columnIdx": 6,
- "columnName": "Date création",
- "expectedIdsOrder": Array [
- 1,
- 2,
- 3,
- ],
- },
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/tenders/__tests__/TendersView.vue.test.ts:39:11
|
src/views/users/__tests__/UsersView.vue.test.ts > UsersView.vue > sorts users:
frontend/tests/utils/mp3000Table.ts#L16
AssertionError: expected [] to deeply equal [ 1, 2, 3 ]
- Expected
+ Received
- Array [
- 1,
- 2,
- 3,
- ]
+ Array []
❯ Module.testSorter tests/utils/mp3000Table.ts:16:55
❯ src/views/users/__tests__/UsersView.vue.test.ts:31:11
|
src/views/tenders/tenderRows/__tests__/TenderRowForm.vue.test.ts > TenderRowForm.vue > triggers submit event:
frontend/src/views/tenders/tenderRows/__tests__/TenderRowForm.vue.test.ts#L46
AssertionError: expected { tender: { id: 1 }, …(5) } to deeply equal { tender: { id: 1 }, …(4) }
- Expected
+ Received
Object {
"description": "desc1",
+ "fixedRate": 0,
"position": 10,
"soldDays": 0,
"tender": Object {
"id": 1,
},
"title": "title1",
}
❯ src/views/tenders/tenderRows/__tests__/TenderRowForm.vue.test.ts:46:17
|
lint-and-tests
Process completed with exit code 1.
|