Skip to content

Commit

Permalink
Add fifty-fifty failing tests (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren authored and sindresorhus committed Apr 29, 2018
1 parent c9bf153 commit cc210d3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fixture/fifty-fifty-space-first.js
@@ -0,0 +1,4 @@
4 spaces
4 spaces
1 tab
1 tab
4 changes: 4 additions & 0 deletions fixture/fifty-fifty-tab-first.js
@@ -0,0 +1,4 @@
1 tab
1 tab
4 spaces
4 spaces
18 changes: 18 additions & 0 deletions test.js
Expand Up @@ -93,3 +93,21 @@ test('return indentation stats for no indentation', t => {
type: null
});
});

test('return indentation stats for fifty-fifty indented files with spaces first', t => {
const stats = m(getFile('fixture/fifty-fifty-space-first.js'));
t.deepEqual(stats, {
amount: 4,
indent: ' ',
type: 'space'
});
});

test.failing('return indentation stats for fifty-fifty indented files with tabs first', t => {
const stats = m(getFile('fixture/fifty-fifty-tab-first.js'));
t.deepEqual(stats, {
amount: 4,
indent: ' ',
type: 'space'
});
});

0 comments on commit cc210d3

Please sign in to comment.