Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
remove expect dependency and update not to throw construction to matc…
Browse files Browse the repository at this point in the history
…h Jasmine API
  • Loading branch information
emoabj committed Nov 8, 2016
1 parent 1fe69fb commit 169ff83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"devDependencies": {
"codecov": "^1.0.1",
"expect": "^1.20.2",
"istanbul": "^0.4.2",
"jasmine": "^2.4.1",
"parse-server-conformance-tests": "^1.0.0"
Expand Down
7 changes: 3 additions & 4 deletions spec/test.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';
let filesAdapterTests = require('parse-server-conformance-tests').files,
expect = require('expect');
let filesAdapterTests = require('parse-server-conformance-tests').files;

let GCSAdapter = require('../index.js');

Expand Down Expand Up @@ -31,11 +30,11 @@ describe('GCSAdapter tests', () => {
it('should not throw when initialized properly', () => {
expect(() => {
return new GCSAdapter('projectId', 'keyFilename', 'bucket');
}).toNotThrow();
}).not.toThrow();

expect(() => {
return new GCSAdapter({ projectId: 'projectId' , keyFilename: 'keyFilename', bucket: 'bucket'});
}).toNotThrow('GCSAdapter requires an bucket')
}).not.toThrow();
});

if (process.env.GCP_PROJECT_ID && process.env.GCP_KEYFILE_PATH && process.env.GCS_BUCKET) {
Expand Down

0 comments on commit 169ff83

Please sign in to comment.