implement Translator.translateBritish(string) method
This commit is contained in:
1 parent
a7985d7e4b
commit
8fcd23e684
2 files changed
+92
-2
No files matched your search
@@ -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();
|
||||
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user