implement Translator.translateBritish(string) method

This commit is contained in:
StevanFreeborn
2022-05-31 22:58:51 -05:00
parent a7985d7e4b
commit 8fcd23e684
2 changed files with 92 additions and 2 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ suite('Unit Tests', () => {
const string = 'We watched the footie match for a while.';
const result = translator.translateBritish(string);
assert.equal(result, 'We watched <span class="highlight">soccer</span> match for a while.');
assert.equal(result, 'We watched the <span class="highlight">soccer</span> match for a while.');
done();
});
@@ -241,7 +241,7 @@ suite('Unit Tests', () => {
const string = 'We watched the footie match for a while.';
const result = translator.translateBritish(string);
assert.equal(result, 'We watched <span class="highlight">soccer</span> match for a while.');
assert.equal(result, 'We watched the <span class="highlight">soccer</span> match for a while.');
done();
});