Skip to content

Commit

Permalink
test(edit): type lines to TLinesFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
asewilhelmsen committed Jul 19, 2023
1 parent c1c6040 commit 6ad5743
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useReducer } from 'react'
import { SelectLines } from './index'
import { SettingsDispatchContext } from 'Admin/utils/contexts'
import { settingsReducer } from '../Edit/reducer'
import { TLinesFragment } from 'graphql/index'

describe('<SelectLines />', () => {
const TestComponent = () => {
Expand All @@ -23,26 +24,30 @@ describe('<SelectLines />', () => {
],
})

const lines = [
const lines: TLinesFragment['lines'] = [
{
id: 'ATB:Line:2_25',
publicCode: '25',
name: 'Vikåsen- Strindheim- Singsaker',
transportMode: 'bus',
},
{
id: 'ATB:Line:2_805',
publicCode: '805',
name: 'Trondheim - Brekstad',
transportMode: 'bus',
},
{
id: 'ATB:Line:2_800',
publicCode: '800',
name: 'Trondheim - Brekstad - Kristiansund',
transportMode: 'bus',
},
{
id: 'ATB:Line:2_810',
publicCode: '810',
name: 'Trondheim - Vanvikan',
transportMode: 'bus',
},
]

Expand Down

0 comments on commit 6ad5743

Please sign in to comment.