Skip to content

Commit

Permalink
Merge pull request #303 from tv2/chore/renaming-of-interfaces-fix-tests
Browse files Browse the repository at this point in the history
fix: Renaming of interfaces was not done in tests
  • Loading branch information
olzzon authored Jan 30, 2024
2 parents 4747f35 + e9d135b commit 721d7f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
9 changes: 4 additions & 5 deletions server/__tests__/channelReducer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import indexReducer from '../../shared/src/reducers/indexReducer'
import {
ChannelActionTypes,
ChannelActions,
} from '../../shared/src/actions/channelActions'
import {
IChannel,
InumberOfChannels,
Channel,
NumberOfChannels,
} from '../../shared/src/reducers/channelsReducer'

import fs from 'fs'
Expand Down Expand Up @@ -76,8 +75,8 @@ describe('Test redux channelReducer actions', () => {
it('should return the new COMPLETE_CHANNEL_STATE on channels', () => {
let parsedFullStore = JSON.parse(parsedFullStoreJSON)
let nextState = JSON.parse(parsedFullStoreJSON)
let channels: IChannel[] = []
let numberOfChannels: InumberOfChannels[] = [{ numberOfTypeInCh: [24] }]
let channels: Channel[] = []
let numberOfChannels: NumberOfChannels[] = [{ numberOfTypeInCh: [24] }]

for (let i = 0; i < 24; i++) {
channels.push({
Expand Down
7 changes: 3 additions & 4 deletions server/__tests__/faderReducer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import indexReducer from '../../shared/src/reducers/indexReducer'
import { IFader, IFaders } from '../../shared/src/reducers/fadersReducer'
import { Fader, Faders } from '../../shared/src/reducers/fadersReducer'
import {
FaderActionTypes,
FaderActions,
} from '../../shared/src/actions/faderActions'

import fs from 'fs'
Expand Down Expand Up @@ -368,11 +367,11 @@ describe('Test redux faderReducers actions', () => {
it('should return the new SET_COMPLETE_FADER_STATE state on faders', () => {
let parsedFullStore = JSON.parse(parsedFullStoreJSON)
let newState = JSON.parse(parsedFullStoreJSON)
let faders: IFader[] = []
let faders: Fader[] = []
for (let i = 0; i < 24; i++) {
faders.push(parsedFullStore.faders[0].fader[i])
}
let fullFaderState: IFaders = { fader: faders, vuMeters: [] }
let fullFaderState: Faders = { fader: faders, vuMeters: [] }

expect(
indexReducer(
Expand Down
1 change: 0 additions & 1 deletion server/__tests__/indexReducer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FaderActionTypes } from '../../shared/src/actions/faderActions'
import { SettingsActionTypes } from '../../shared/src/actions/settingsActions'
import indexReducer from '../../shared/src/reducers/indexReducer'

import fs from 'fs'
Expand Down
1 change: 0 additions & 1 deletion server/__tests__/settingsReducer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import indexReducer from '../../shared/src/reducers/indexReducer'
import {
SettingsActionTypes,
SettingsActions,
} from '../../shared/src/actions/settingsActions'

import fs from 'fs'
Expand Down

0 comments on commit 721d7f9

Please sign in to comment.