mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -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
|
@ -1,9 +1,9 @@
|
|||
var test = require('tap').test;
|
||||
var xml = require('../../src/util/xml-escape');
|
||||
const test = require('tap').test;
|
||||
const xml = require('../../src/util/xml-escape');
|
||||
|
||||
test('escape', function (t) {
|
||||
var input = '<foo bar="he & llo \'"></foo>';
|
||||
var output = '<foo bar="he & llo '"></foo>';
|
||||
test('escape', t => {
|
||||
const input = '<foo bar="he & llo \'"></foo>';
|
||||
const output = '<foo bar="he & llo '"></foo>';
|
||||
t.strictEqual(xml(input), output);
|
||||
t.end();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue