Skip to content

Commit

Permalink
Fix Windows tests in Appveyor
Browse files Browse the repository at this point in the history
#4
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
  • Loading branch information
jviotti committed May 23, 2016
1 parent a131b53 commit beb277e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ electron-json-storage
[![npm version](https://badge.fury.io/js/electron-json-storage.svg)](http://badge.fury.io/js/electron-json-storage)
[![dependencies](https://david-dm.org/jviotti/electron-json-storage.svg)](https://david-dm.org/jviotti/electron-json-storage.svg)
[![Build Status](https://travis-ci.org/jviotti/electron-json-storage.svg?branch=master)](https://travis-ci.org/jviotti/electron-json-storage)
[![Build status](https://ci.appveyor.com/api/projects/status/j9k3k7mgraardwvd/branch/master?svg=true)](https://ci.appveyor.com/project/jviotti/electron-json-storage/branch/master)
[![Build status](https://ci.appveyor.com/api/projects/status/ulwk1nnh7l8209xg/branch/master?svg=true)](https://ci.appveyor.com/project/jviotti/electron-json-storage/branch/master)

[Electron](http://electron.atom.io) lacks an easy way to persist and read user settings for your application. `electron-json-storage` implements an API somehow similar to [localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) to write and read JSON objects to/from the operating system application data directory, as defined by `app.getPath('userData')`.

Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Expand Up @@ -10,6 +10,8 @@ cache:

# what combinations to test
environment:
global:
ELECTRON_NO_ATTACH_CONSOLE: true
matrix:
- nodejs_version: 4

Expand Down
2 changes: 1 addition & 1 deletion doc/README.hbs
Expand Up @@ -6,7 +6,7 @@ electron-json-storage
[![npm version](https://badge.fury.io/js/electron-json-storage.svg)](http://badge.fury.io/js/electron-json-storage)
[![dependencies](https://david-dm.org/jviotti/electron-json-storage.svg)](https://david-dm.org/jviotti/electron-json-storage.svg)
[![Build Status](https://travis-ci.org/jviotti/electron-json-storage.svg?branch=master)](https://travis-ci.org/jviotti/electron-json-storage)
[![Build status](https://ci.appveyor.com/api/projects/status/j9k3k7mgraardwvd/branch/master?svg=true)](https://ci.appveyor.com/project/jviotti/electron-json-storage/branch/master)
[![Build status](https://ci.appveyor.com/api/projects/status/ulwk1nnh7l8209xg/branch/master?svg=true)](https://ci.appveyor.com/project/jviotti/electron-json-storage/branch/master)

[Electron](http://electron.atom.io) lacks an easy way to persist and read user settings for your application. `electron-json-storage` implements an API somehow similar to [localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) to write and read JSON objects to/from the operating system application data directory, as defined by `app.getPath('userData')`.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"test": "tests"
},
"scripts": {
"test": "electron-mocha --recursive tests -R progress && electron-mocha --renderer --recursive tests -R progress",
"test": "electron-mocha --recursive tests -R spec && electron-mocha --renderer --recursive tests -R spec",
"lint": "jshint --config .jshintrc --reporter unix lib tests",
"readme": "jsdoc2md --template doc/README.hbs lib/storage.js > README.md"
},
Expand Down
2 changes: 2 additions & 0 deletions tests/storage.spec.js
Expand Up @@ -33,6 +33,8 @@ const utils = require('../lib/utils');

describe('Electron JSON Storage', function() {

this.timeout(10000);

// Ensure each test case is always ran in a clean state
beforeEach(storage.clear);

Expand Down
2 changes: 2 additions & 0 deletions tests/utils.spec.js
Expand Up @@ -30,6 +30,8 @@ const utils = require('../lib/utils');

describe('Utils', function() {

this.timeout(10000);

describe('.getUserDataPath()', function() {

it('should return an absolute path', function() {
Expand Down

0 comments on commit beb277e

Please sign in to comment.