Skip to content

Commit 8f5ea1d

Browse files
committed
Use Jest instead jasmine-node for testing
1 parent 3964904 commit 8f5ea1d

File tree

6 files changed

+4819
-27
lines changed

6 files changed

+4819
-27
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ logs
44
npm-debug.log*
55
node_modules
66
.idea
7-
postcss-px-to-em-master
7+
yarn.lock

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ add to your `postcss.config.js`
161161
```js
162162
module.exports = {
163163
plugins: {
164-
...
164+
// ...
165165
'postcss-px-to-viewport': {
166166
// options
167167
}
@@ -171,9 +171,9 @@ module.exports = {
171171

172172
## Running the tests
173173

174-
In order to run tests, you need to install `jasmine-node` globally:
174+
In order to run tests, you need to install dev-packages:
175175
```
176-
$ npm install jasmine-node -g
176+
$ npm install
177177
```
178178
Then run the tests via npm script:
179179
```

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# postcss-px-to-viewport
22
[![NPM version](https://badge.fury.io/js/postcss-px-to-viewport.svg)](http://badge.fury.io/js/postcss-px-to-viewport)
33

4-
[English](README.md) | 中文
4+
[English](README.md) | 中文
55

66
将px单位转换为视口单位的 (vw, vh, vmin, vmax) 的 [PostCSS](https://github.com/postcss/postcss) 插件.
77

@@ -161,7 +161,7 @@ gulp.task('css', function () {
161161
```js
162162
module.exports = {
163163
plugins: {
164-
...
164+
// ...
165165
'postcss-px-to-viewport': {
166166
// options
167167
}
@@ -171,9 +171,9 @@ module.exports = {
171171

172172
## 测试
173173

174-
为了跑测试案例, 你需要全局安装 `jasmine-node` :
174+
为了跑测试案例,您需要安装开发套件:
175175
```
176-
$ npm install jasmine-node -g
176+
$ npm install
177177
```
178178
然后输入下面的命令:
179179
```

0 commit comments

Comments
 (0)