mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-28 06:59:45 -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,7 +1,7 @@
|
|||
var test = require('tap').test;
|
||||
var StringUtil = require('../../src/util/string-util');
|
||||
const test = require('tap').test;
|
||||
const StringUtil = require('../../src/util/string-util');
|
||||
|
||||
test('withoutTrailingDigits', function (t) {
|
||||
test('withoutTrailingDigits', t => {
|
||||
t.strictEqual(StringUtil.withoutTrailingDigits('boeing747'), 'boeing');
|
||||
t.strictEqual(StringUtil.withoutTrailingDigits('boeing747 '), 'boeing747 ');
|
||||
t.strictEqual(StringUtil.withoutTrailingDigits('boeing𝟨'), 'boeing𝟨');
|
||||
|
@ -10,7 +10,7 @@ test('withoutTrailingDigits', function (t) {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('unusedName', function (t) {
|
||||
test('unusedName', t => {
|
||||
t.strictEqual(
|
||||
StringUtil.unusedName(
|
||||
'name',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue