Browse Source

More Core tests

Artur Paikin 9 years ago
parent
commit
8ccba1bac5
2 changed files with 3 additions and 3 deletions
  1. 1 1
      test/core.spec.js
  2. 2 2
      test/mocks/plugin-selecter.js

+ 1 - 1
test/core.spec.js

@@ -5,7 +5,7 @@ test('core', function (t) {
   const uppy = new Uppy()
 
   t.equal(typeof uppy, 'object', '`new Core()` should return an `object`')
-  t.equal(uppy instanceof Uppy, true, '`uppy` should be an instance of `Uppy` core')
+  t.ok(uppy instanceof Uppy, '`uppy` should be an instance of `Uppy` core')
   t.end()
 })
 

+ 2 - 2
test/mocks/plugin-selecter.js

@@ -1,4 +1,4 @@
-var Plugin = require('../../src/plugins/Plugin.js')
+const Plugin = require('../../src/plugins/Plugin.js')
 
 export default class TestSelector extends Plugin {
   constructor (core, opts) {
@@ -7,7 +7,7 @@ export default class TestSelector extends Plugin {
   }
 
   run (results) {
-    console.log({
+    this.core.log({
       class: this.constructor.name,
       method: 'run',
       results: results