Skip to content

Commit

Permalink
test(test-postcss): off source map
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Demidov committed Mar 31, 2017
1 parent a489538 commit 7fb5aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const read = path => new Promise((resolve, reject) => {
test('post-load-pliguns default config for postcss from package.json', async t => {
t.is(
'.test{display:-ms-flexbox;display:flex;color:red}',
(await postcss(postLoadPlugins()).process('.test { display: flex; color: #ff0000;} @charset "utf-8";')).css
(await postcss(postLoadPlugins()).process('.test { display: flex; color: #ff0000;} @charset "utf-8";', {map: false})).css
);
});

test('post-load-pliguns default config for postcss-cli from package.json', async t => {
t.plan(2);
const filename = tempfile('.css');
await execa('postcss', ['-u', path.resolve('../lib/index.js'), '-o', filename, 'fixtures/input-for-cli.css']);
await execa('postcss', ['-u', path.resolve('../lib/index.js'), '-o', filename, 'fixtures/input-for-cli.css', '--no-map']);
const fix = await read('expected/output-for-cli.css');
const exp = await read(filename);
t.true(existsSync(filename));
Expand Down

0 comments on commit 7fb5aaa

Please sign in to comment.