import { REGRADE_SET_SCORE_RECONCILIATION } from '@instructure/quiz-common/lib/constants'

import { setScoreReconciliation } from '../regrading'

describe('setScoreReconciliation', () => {
  it('returns correct action', () => {
    const scoreReconciliation = 'new_score'
    const setScoreReconciliationAction = setScoreReconciliation(scoreReconciliation)
    expect(setScoreReconciliationAction.type).to.be.equal(REGRADE_SET_SCORE_RECONCILIATION)
    expect(setScoreReconciliationAction.payload).to.be.equal(scoreReconciliation)
  })
})
