Description: replace ava by tape in test
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-05-13

--- a/test.js
+++ b/test.js
@@ -1,12 +1,13 @@
-import fs from 'fs';
-import path from 'path';
-import test from 'ava';
-import detectIndent from '.';
+const fs = require('fs');
+const path = require('path');
+const test = require('tape');
+const detectIndent = require('.');
 
 const getFile = file => fs.readFileSync(path.join(__dirname, file), 'utf8');
 
 test('detect the indent of a file with space indent', t => {
 	t.is(detectIndent(getFile('fixture/space.js')).indent, '    ');
+    t.end();
 });
 
 test('return indentation stats for spaces', t => {
@@ -16,6 +17,7 @@
 		indent: '    ',
 		type: 'space'
 	});
+    t.end();
 });
 
 test('return indentation stats for multiple tabs', t => {
@@ -25,10 +27,12 @@
 		indent: '\t\t\t\t',
 		type: 'tab'
 	});
+    t.end();
 });
 
 test('detect the indent of a file with tab indent', t => {
 	t.is(detectIndent(getFile('fixture/tab.js')).indent, '\t');
+    t.end();
 });
 
 test('return indentation stats for tabs', t => {
@@ -38,10 +42,12 @@
 		indent: '\t',
 		type: 'tab'
 	});
+    t.end();
 });
 
 test('detect the indent of a file with equal tabs and spaces', t => {
 	t.is(detectIndent(getFile('fixture/mixed-tab.js')).indent, '\t');
+    t.end();
 });
 
 test('return indentation stats for equal tabs and spaces', t => {
@@ -51,11 +57,13 @@
 		indent: '\t',
 		type: 'tab'
 	});
+    t.end();
 });
 
 test('detect the indent of a file with mostly spaces', t => {
 	const stats = detectIndent(getFile('fixture/mixed-space.js'));
 	t.is(stats.indent, '    ');
+    t.end();
 });
 
 test('return indentation stats for mostly spaces', t => {
@@ -65,11 +73,13 @@
 		indent: '    ',
 		type: 'space'
 	});
+    t.end();
 });
 
 test('detect the indent of a weirdly indented vendor prefixed CSS', t => {
 	const stats = detectIndent(getFile('fixture/vendor-prefixed-css.css'));
 	t.is(stats.indent, '    ');
+    t.end();
 });
 
 test('return indentation stats for various spaces', t => {
@@ -79,10 +89,12 @@
 		indent: '    ',
 		type: 'space'
 	});
+    t.end();
 });
 
 test('return `0` when there is no indentation', t => {
 	t.is(detectIndent('<ul></ul>').amount, 0);
+    t.end();
 });
 
 test('return indentation stats for no indentation', t => {
@@ -92,6 +104,7 @@
 		indent: '',
 		type: undefined
 	});
+    t.end();
 });
 
 test('return indentation stats for fifty-fifty indented files with spaces first', t => {
@@ -101,6 +114,7 @@
 		indent: '    ',
 		type: 'space'
 	});
+    t.end();
 });
 
 test('return indentation stats for fifty-fifty indented files with tabs first', t => {
@@ -110,6 +124,7 @@
 		indent: '	',
 		type: 'tab'
 	});
+    t.end();
 });
 
 test('return indentation stats for indented files with spaces and tabs last', t => {
@@ -119,4 +134,5 @@
 		indent: '	',
 		type: 'tab'
 	});
+    t.end();
 });
