Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akira-cn committed Mar 23, 2018
1 parent 0e92b03 commit e1ea9c3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/platform.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const test = require('ava')
const colors = require('colors')

import {createCanvas, loadImage, measureText} from '../src/cross-platform'
import {createCanvas, loadImage} from '../src/cross-platform'

/* eslint-disable no-console */
test('createCanvas', (t) => {
Expand All @@ -15,12 +14,4 @@ test('load image', async (t) => {
t.is(img.width, 400)
t.is(img.height, 400)
})

test('measureText', (t) => {
const r = measureText('Hellow World!', '16px Arial')
console.log(colors.yellow(`Text measured: ${r}`))
const r2 = measureText('Sprite.js', '16px Arial', 101)
console.log(colors.yellow(`Text measured: ${r2}`))
t.pass('Depend on environment.')
})
/* eslint-enable no-console */

0 comments on commit e1ea9c3

Please sign in to comment.