Skip to content

Commit

Permalink
Clean up code a bit using Promise.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotsivad committed Oct 23, 2015
1 parent fd68aef commit ec0fc9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,8 @@ test('resolve that returns a promise', function(t) {
name: 'some-state',
template: null,
resolve: function() {
return new Promise(function(resolve, reject) {
resolve({
value: 'this is it!'
})
return Promise.resolve({
value: 'this is it!'
})
},
activate: function(context) {
Expand Down

0 comments on commit ec0fc9d

Please sign in to comment.