Skip to content

Commit

Permalink
Merge branch 'wikimedia-gadgets:master' into merge-changes-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaniels5757 authored Dec 17, 2024
2 parents 138d0d1 + 5766366 commit 811b189
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/morebits.batchOperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe('Morebits.batchOperation', () => {
test('Contruction', () => {
assert.true(new Morebits.BatchOperation() instanceof Morebits.batchOperation, 'Correct instance');
assert.true(new Morebits.BatchOperation() instanceof Morebits.BatchOperation, 'Correct instance');
});
const batch = new Morebits.BatchOperation();
const pageList = ['Macbeth', 'Hamlet', 'Romeo and Juliet', 'Much Ado About Nothing', 'Tempest'];
Expand Down
2 changes: 1 addition & 1 deletion tests/morebits.taskManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe('Morebits.taskManager', () => {
test('Contruction', () => {
const tm = new Morebits.TaskManager();
assert.true(tm instanceof Morebits.taskManager, 'Correct instance');
assert.true(tm instanceof Morebits.TaskManager, 'Correct instance');
});

// Helper to generate functions as well as testing output in proper order;
Expand Down
4 changes: 2 additions & 2 deletions tests/morebits.unbinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Morebits.unbinder', () => {
assert.throws(() => new Morebits.Unbinder(), 'throws: no string');
assert.throws(() => new Morebits.Unbinder([42]), 'throws: not a string');
const u = new Morebits.Unbinder('Hello world');
assert.true(u instanceof Morebits.unbinder, 'Correct instance');
assert.true(u instanceof Morebits.Unbinder, 'Correct instance');
assert.throws(() => u.unbind(), 'throws: Missing prefix');
assert.throws(() => u.unbind('w'), 'throws: Missing postfix');
});
Expand All @@ -16,7 +16,7 @@ describe('Morebits.unbinder', () => {
assert.strictEqual(u.rebind(), 'Hello earth <!-- world --> earth', 'Simple replace');

u = new Morebits.Unbinder('Hello world <!-- world --> world [link link] [[link|link]]');
assert.true(u instanceof Morebits.unbinder, 'Correct instance');
assert.true(u instanceof Morebits.Unbinder, 'Correct instance');
u.unbind('<!--', '-->');
u.unbind('\\[\\[', '\\]\\]');
u.content = u.content.replace(/world/g, 'earth').replace(/link/g, 'url');
Expand Down
2 changes: 1 addition & 1 deletion tests/morebits.wikitext.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('Morebits.wikitext', () => {
test('Morebits.wikitext.page', () => {
const text = '{{short description}}{{about}}[[File:Fee.svg]]O, [[Juliet|she]] doth {{plural|teach}} the torches to burn bright!';
const page = new Morebits.wikitext.Page(text);
assert.true(page instanceof Morebits.wikitext.page, 'Correct instance');
assert.true(page instanceof Morebits.wikitext.Page, 'Correct instance');
assert.strictEqual(page.getText(), text, 'Got text');

// Throws
Expand Down

0 comments on commit 811b189

Please sign in to comment.