Skip to content

Commit

Permalink
Fix Bloodreaper spacing from Azyr
Browse files Browse the repository at this point in the history
  • Loading branch information
exonian committed Oct 15, 2019
1 parent 8de503d commit 3b6871c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tests/azyr/getAzyrArmy.test.ts
Expand Up @@ -4,6 +4,7 @@ import { isPoorlySpacedMatch } from 'utils/import/isPoorlySpacedMatch'

import {
BEASTS_OF_CHAOS,
KHORNE,
CITIES_OF_SIGMAR,
DAUGHTERS_OF_KHAINE,
FLESH_EATER_COURTS,
Expand All @@ -25,6 +26,7 @@ import CoS4 from '../fixtures/azyr/json/CoS4.json'
import DoK2 from '../fixtures/azyr/json/DoK2.json'
import FEC2 from '../fixtures/azyr/json/FEC2.json'
import Fyreslayers2 from '../fixtures/azyr/json/Fyreslayers2.json'
import Khorne2 from '../fixtures/azyr/json/Khorne2.json'
import KO1 from '../fixtures/azyr/json/KO1.json'
import KO2 from '../fixtures/azyr/json/KO2.json'
import KO4 from '../fixtures/azyr/json/KO4.json'
Expand All @@ -37,6 +39,13 @@ import Slaanesh2 from '../fixtures/azyr/json/Slaanesh2.json'
import Stormcast4 from '../fixtures/azyr/json/Stormcast4.json'

describe('getAzyrArmyFromPdf', () => {
it('handles Khorne2', () => {
const pages = handleAzyrPages(Khorne2)
const res = getAzyrArmyFromPdf(pages)
expect(res.factionName).toEqual(KHORNE)
expect(res.unknownSelections).toEqual([])
})

it('handles DoK2', () => {
const pages = handleAzyrPages(DoK2)
const res = getAzyrArmyFromPdf(pages)
Expand Down
1 change: 1 addition & 0 deletions src/utils/azyr/azyrPdf.ts
Expand Up @@ -268,6 +268,7 @@ const commonTypos = {
'Bear er': 'Bearer',
'Berserk Er Lor D': 'Berserker Lord',
'Black ened': 'Blackened',
'Bloodr eaper': 'Bloodreaper',
'Boltst orm': 'Boltstorm',
'Cour t': 'Court',
'Court s': 'Courts',
Expand Down

0 comments on commit 3b6871c

Please sign in to comment.