diff --git a/test/test.js b/test/test.js index f4e2c7f..3d361eb 100644 --- a/test/test.js +++ b/test/test.js @@ -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) {