mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-10 21:39:57 -04:00
Use ES6 linting rules in the project root
Update all tests for `no-var` and `prefer-arrow-callback` (using `--fix`)
This commit is contained in:
parent
5f59d1e7e5
commit
bafdf8d9f2
36 changed files with 666 additions and 666 deletions
test/unit
|
@ -1,10 +1,10 @@
|
|||
var test = require('tap').test;
|
||||
var Mouse = require('../../src/io/mouse');
|
||||
var Runtime = require('../../src/engine/runtime');
|
||||
const test = require('tap').test;
|
||||
const Mouse = require('../../src/io/mouse');
|
||||
const Runtime = require('../../src/engine/runtime');
|
||||
|
||||
test('spec', function (t) {
|
||||
var rt = new Runtime();
|
||||
var m = new Mouse(rt);
|
||||
test('spec', t => {
|
||||
const rt = new Runtime();
|
||||
const m = new Mouse(rt);
|
||||
|
||||
t.type(m, 'object');
|
||||
t.type(m.postData, 'function');
|
||||
|
@ -14,9 +14,9 @@ test('spec', function (t) {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('mouseUp', function (t) {
|
||||
var rt = new Runtime();
|
||||
var m = new Mouse(rt);
|
||||
test('mouseUp', t => {
|
||||
const rt = new Runtime();
|
||||
const m = new Mouse(rt);
|
||||
|
||||
m.postData({
|
||||
x: 1,
|
||||
|
@ -31,9 +31,9 @@ test('mouseUp', function (t) {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('mouseDown', function (t) {
|
||||
var rt = new Runtime();
|
||||
var m = new Mouse(rt);
|
||||
test('mouseDown', t => {
|
||||
const rt = new Runtime();
|
||||
const m = new Mouse(rt);
|
||||
|
||||
m.postData({
|
||||
x: 10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue