Skip to content

Commit e066f34

Browse files
test: refactor (#299)
1 parent aaf1672 commit e066f34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+593
-4822
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
cache:
2-
directories:
3-
- node_modules
4-
51
language: node_js
2+
63
node_js:
74
- "node"
85
- 6
9-
- 4
6+
7+
after_success:
8+
- npm i coveralls
9+
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
1010

1111
notifications:
1212
email: false

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
[![node][node]][node-url]
33
[![deps][deps]][deps-url]
44
[![tests][tests]][tests-url]
5+
[![coverage][cover]][cover-url]
56
[![chat][chat]][chat-url]
67

7-
<!-- [![coverage][cover]][cover-url] -->
8-
98
<div align="center">
109
<img width="180" height="180" hspace="10"
1110
alt="PostCSS Logo"

lib/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const SyntaxError = require('./Error')
4040
* @return {cb} cb Result
4141
*/
4242
module.exports = function loader (css, map) {
43-
const cb = this.async()
44-
const file = this.resourcePath
45-
4643
const options = loaderUtils.getOptions(this) || {}
4744

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

47+
const cb = this.async()
48+
const file = this.resourcePath
49+
5050
const sourceMap = options.sourceMap
5151

5252
Promise.resolve().then(() => {

0 commit comments

Comments
 (0)