Skip to content

Commit

Permalink
[fix] breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buritica committed Jul 19, 2015
1 parent 9a7af9e commit e8bd03d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions tests/integration/stripe-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global Stripe */

import Ember from 'ember';
import { moduleFor, test } from 'ember-qunit';
import env from 'dummy/config/environment';

Expand Down Expand Up @@ -28,22 +27,20 @@ Stripe.setPublishableKey(env.stripe.publishableKey);
test('card.createToken sets the token and returns a promise', function(assert) {
var service = this.subject();

Ember.run(function(){
service.card.createToken(cc)
.then(function(res) {
assert.ok(res.id, 'correct token set');
});
return service.card.createToken(cc)
.then(function(res) {
console.log('res', res);
assert.ok(res.id, 'correct token set');
});
});

test('bankAccount.createToken sets the token and returns a promise', function(assert) {
var service = this.subject();

Ember.run(function(){
service.bankAccount.createToken(bankAccount)
.then(function(res) {
assert.ok(res.id, 'correct token set');
});
return service.bankAccount.createToken(bankAccount)
.then(function(res) {
console.log('res', res);
assert.ok(res.id, 'correct token set');
});
});

0 comments on commit e8bd03d

Please sign in to comment.