import test from 'ava';
import plugin from '../postcss-rem-phi-units'
import postcss from 'postcss';
import { readFileSync } from 'fs';

test('Settingless units', async t => {
	postcss(plugin)
		.process(readFileSync('in.css'))
		.then(result =>
			t.same(result.css, readFileSync('expected.css', 'utf8'))
		);
});

import test from 'ava';
import plugin from '../postcss-rem-phi-units';
import postcss from 'postcss';
import { readFileSync } from 'fs';

test('Settingless units', async t => {
	postcss(plugin)
		.process(readFileSync('in.css'))
		.then(result =>
			t.same(result.css, readFileSync('expected.css', 'utf8'));
		);
});

Convert test js to happiness
Convert test js to happiness

It’d be a PITA to lint these differently so we should either convert this back to ES5 or convert postcss-rem-phi-units.js to ES2015.
