Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
This commit is contained in:
@@ -3,7 +3,7 @@ import {getFontFamilies} from '../../../src/ol/css.js';
|
||||
describe('ol.css', function() {
|
||||
|
||||
describe('getFontFamilies()', function() {
|
||||
var cases = [{
|
||||
const cases = [{
|
||||
font: '2em "Open Sans"',
|
||||
families: ['"Open Sans"']
|
||||
}, {
|
||||
@@ -25,7 +25,7 @@ describe('ol.css', function() {
|
||||
|
||||
cases.forEach(function(c, i) {
|
||||
it('works for ' + c.font, function() {
|
||||
var families = getFontFamilies(c.font);
|
||||
const families = getFontFamilies(c.font);
|
||||
if (c.families === null) {
|
||||
expect(families).to.be(null);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user