Skip to content

Commit 5766366

Browse files
authored
eslint: fix a couple more new-caps in tests (#2132)
1 parent 58828bd commit 5766366

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/morebits.batchOperation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe('Morebits.batchOperation', () => {
44
test('Contruction', () => {
5-
assert.true(new Morebits.BatchOperation() instanceof Morebits.batchOperation, 'Correct instance');
5+
assert.true(new Morebits.BatchOperation() instanceof Morebits.BatchOperation, 'Correct instance');
66
});
77
const batch = new Morebits.BatchOperation();
88
const pageList = ['Macbeth', 'Hamlet', 'Romeo and Juliet', 'Much Ado About Nothing', 'Tempest'];

tests/morebits.taskManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe('Morebits.taskManager', () => {
44
test('Contruction', () => {
55
const tm = new Morebits.TaskManager();
6-
assert.true(tm instanceof Morebits.taskManager, 'Correct instance');
6+
assert.true(tm instanceof Morebits.TaskManager, 'Correct instance');
77
});
88

99
// Helper to generate functions as well as testing output in proper order;

tests/morebits.unbinder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('Morebits.unbinder', () => {
55
assert.throws(() => new Morebits.Unbinder(), 'throws: no string');
66
assert.throws(() => new Morebits.Unbinder([42]), 'throws: not a string');
77
const u = new Morebits.Unbinder('Hello world');
8-
assert.true(u instanceof Morebits.unbinder, 'Correct instance');
8+
assert.true(u instanceof Morebits.Unbinder, 'Correct instance');
99
assert.throws(() => u.unbind(), 'throws: Missing prefix');
1010
assert.throws(() => u.unbind('w'), 'throws: Missing postfix');
1111
});
@@ -16,7 +16,7 @@ describe('Morebits.unbinder', () => {
1616
assert.strictEqual(u.rebind(), 'Hello earth <!-- world --> earth', 'Simple replace');
1717

1818
u = new Morebits.Unbinder('Hello world <!-- world --> world [link link] [[link|link]]');
19-
assert.true(u instanceof Morebits.unbinder, 'Correct instance');
19+
assert.true(u instanceof Morebits.Unbinder, 'Correct instance');
2020
u.unbind('<!--', '-->');
2121
u.unbind('\\[\\[', '\\]\\]');
2222
u.content = u.content.replace(/world/g, 'earth').replace(/link/g, 'url');

tests/morebits.wikitext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('Morebits.wikitext', () => {
8484
test('Morebits.wikitext.page', () => {
8585
const text = '{{short description}}{{about}}[[File:Fee.svg]]O, [[Juliet|she]] doth {{plural|teach}} the torches to burn bright!';
8686
const page = new Morebits.wikitext.Page(text);
87-
assert.true(page instanceof Morebits.wikitext.page, 'Correct instance');
87+
assert.true(page instanceof Morebits.wikitext.Page, 'Correct instance');
8888
assert.strictEqual(page.getText(), text, 'Got text');
8989

9090
// Throws

0 commit comments

Comments
 (0)