Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukePeavey committed May 1, 2022
1 parent 953c2c9 commit d9ca2fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions __tests__/__snapshots__/SplitType.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ SplitType {
"lineClass": "line",
"splitClass": "",
"tagName": "div",
"types": "words, chars",
"types": Array [
"words",
"chars",
],
"wordClass": "word",
},
"words": Array [
Expand Down Expand Up @@ -707,7 +710,11 @@ SplitType {
"lineClass": "line",
"splitClass": "",
"tagName": "div",
"types": "lines, words, chars",
"types": Array [
"lines",
"words",
"chars",
],
"wordClass": "word",
},
"words": Array [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils/parseSettings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import parseSettings from '../../lib/utils/parseSettings'

describe(`utils.parseSettings`, () => {
it(`Accepts \`split\` as an alias for \`types\``, () => {
expect(parseSettings({ split: 'words' }).types).toEqual('words')
expect(parseSettings({ split: 'words' }).types).toEqual(['words'])
})
})

0 comments on commit d9ca2fd

Please sign in to comment.