Skip to content

Commit

Permalink
Remove global stripe from EphemeralKeys test
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Nov 1, 2022
1 parent 4468b74 commit 4870c39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/resources/EphemeralKeys.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

const stripe = require('../../testUtils').getSpyableStripe();
const expect = require('chai').expect;

function errorsOnNoStripeVersion(stripe) {
Expand Down Expand Up @@ -32,6 +31,8 @@ function sendsCorrectStripeVersion(stripe) {

describe('EphemeralKey Resource', () => {
describe('create', () => {
const stripe = require('../../testUtils').getSpyableStripe();

it('Sends the correct request', () => {
stripe.ephemeralKeys.create(
{customer: 'cus_123'},
Expand Down Expand Up @@ -78,6 +79,8 @@ describe('EphemeralKey Resource', () => {
});

describe('delete', () => {
const stripe = require('../../testUtils').getSpyableStripe();

it('Sends the correct request', () => {
stripe.ephemeralKeys.del('ephkey_123');
expect(stripe.LAST_REQUEST).to.deep.equal({
Expand Down

0 comments on commit 4870c39

Please sign in to comment.