20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
import { getEditStatusSymbol } from './getEditStatusSymbol'
|
|
|
|
describe('getEditStatusSymbol', () => {
|
|
it("returns '+' for Added", () => {
|
|
expect(getEditStatusSymbol('A')).toEqual('+')
|
|
})
|
|
|
|
it("returns '-' for Deleted", () => {
|
|
expect(getEditStatusSymbol('D')).toEqual('-')
|
|
})
|
|
|
|
it("returns '±' for Modified", () => {
|
|
expect(getEditStatusSymbol('M')).toEqual('±')
|
|
})
|
|
|
|
it("returns '' for Unchanged", () => {
|
|
expect(getEditStatusSymbol('U')).toEqual('')
|
|
})
|
|
})
|