Skip to content

Commit

Permalink
update sinon to 9.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker authored and AtofStryker committed Sep 14, 2020
1 parent 3a56348 commit a0680c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"jsdoc": "^3.6.2",
"sinon": "^1.17.2"
"sinon": "^9.0.3"
}
}
10 changes: 5 additions & 5 deletions tests/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe('Store', function () {
let store = createStore()

// Force the eventual `fetch` call to fail.
sinon.stub(store._adapter, 'get', function () {
sinon.stub(store._adapter, 'get').callsFake(() => {
return new Promise((_, reject) => {
reject(new Error('rejected!'))
})
Expand All @@ -228,7 +228,7 @@ describe('Store', function () {
xit('returns a single promise instance if previous request has not resolved', function () {
let store = createStore()
let resolver
sinon.stub(store._adapter, 'get', function () {
sinon.stub(store._adapter, 'get').callsFake(() => {
return new Promise((resolve, reject) => {
resolver = {resolve, reject}
})
Expand Down Expand Up @@ -443,7 +443,7 @@ describe('Store', function () {
it('POSTs a serialized resource', function () {
let store = createStore()
let user = store.build('user', {name: 'Hello'})
sinon.stub(store._adapter, 'create', function () {
sinon.stub(store._adapter, 'create').callsFake(() => {
return new Promise((resolve) => {
resolve({
data: {
Expand Down Expand Up @@ -472,7 +472,7 @@ describe('Store', function () {
it('PATCHes a serialized resource', function () {
let store = createStore()
let user = store.build('user', {id: 1, _self: '/api/user/1', name: 'Hello'})
sinon.stub(store._adapter, 'update', function () {
sinon.stub(store._adapter, 'update').callsFake(() => {
return new Promise((resolve) => {
resolve({
data: {
Expand Down Expand Up @@ -501,7 +501,7 @@ describe('Store', function () {
it('DELETEs a serialized resource', function () {
let store = createStore()
let user = store.build('user', {id: 1, _self: '/api/user/1', name: 'Hello'})
sinon.stub(store._adapter, 'destroy', function () {
sinon.stub(store._adapter, 'destroy').callsFake(() => {
return new Promise((resolve) => {
resolve()
})
Expand Down

0 comments on commit a0680c6

Please sign in to comment.