1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-26 22:44:45 +02:00

Adding tests with jest

This commit is contained in:
Antonio Laguna
2017-04-26 23:11:56 +02:00
parent f6ac24007a
commit b6a4ae71b9
6 changed files with 315 additions and 35 deletions

14
test/utils/keys.test.js Normal file
View File

@@ -0,0 +1,14 @@
import Keys from '../../src/js/utils/keys';
test('Keys are present', () => {
expect(Keys.ENTER).toBe(13);
expect(Keys.SPACE).toBe(32);
expect(Keys.RE_PAGE).toBe(33);
expect(Keys.AV_PAGE).toBe(34);
expect(Keys.END).toBe(35);
expect(Keys.HOME).toBe(36);
expect(Keys.LEFT).toBe(37);
expect(Keys.UP).toBe(38);
expect(Keys.RIGHT).toBe(39);
expect(Keys.DOWN).toBe(40);
});