mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-11 16:18:15 -05:00
14 lines
408 B
JavaScript
14 lines
408 B
JavaScript
describe("Keycodes", function() {
|
|
it("sets the correct keycode for letters", function() {
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").forEach(function(c) {
|
|
expect(String.fromCharCode(Keycodes[c])).toBe(c);
|
|
});
|
|
});
|
|
|
|
it("sets the correct keycode for digits", function() {
|
|
"0123456789".split("").forEach(function(c) {
|
|
expect(String.fromCharCode(Keycodes[c])).toBe(c);
|
|
});
|
|
});
|
|
});
|