Skip to content

Commit

Permalink
test: refactor (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Oct 10, 2017
1 parent aaf1672 commit e066f34
Show file tree
Hide file tree
Showing 70 changed files with 593 additions and 4,822 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
10 changes: 5 additions & 5 deletions .travis.yml
@@ -1,12 +1,12 @@
cache:
directories:
- node_modules

language: node_js

node_js:
- "node"
- 6
- 4

after_success:
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

notifications:
email: false
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -2,10 +2,9 @@
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]
[![chat][chat]][chat-url]

<!-- [![coverage][cover]][cover-url] -->

<div align="center">
<img width="180" height="180" hspace="10"
alt="PostCSS Logo"
Expand Down
6 changes: 3 additions & 3 deletions lib/index.js
Expand Up @@ -40,13 +40,13 @@ const SyntaxError = require('./Error')
* @return {cb} cb Result
*/
module.exports = function loader (css, map) {
const cb = this.async()
const file = this.resourcePath

const options = loaderUtils.getOptions(this) || {}

validateOptions(require('./options.json'), options, 'PostCSS Loader')

const cb = this.async()
const file = this.resourcePath

const sourceMap = options.sourceMap

Promise.resolve().then(() => {
Expand Down

0 comments on commit e066f34

Please sign in to comment.