mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Add spellcheck smoke test
Exposes the spellcheck provider as window.spellChecker, which allows it to be called from tests.
This commit is contained in:
10
test/spellcheck_test.js
Normal file
10
test/spellcheck_test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* vim: ts=4:sw=4:expandtab
|
||||
*/
|
||||
|
||||
describe('spellChecker', function() {
|
||||
it('should work', function() {
|
||||
assert(window.spellChecker.spellCheck('correct'));
|
||||
assert(!window.spellChecker.spellCheck('fhqwgads'));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user