1
0
mirror of https://github.com/garraflavatra/alphabets.git synced 2025-01-19 05:37:59 +00:00
alphabets/src/bundle.test.js

20 lines
988 B
JavaScript
Raw Normal View History

2021-05-24 13:01:04 +00:00
// These tests are just samples and not every alphabet is tested (that's boring).
2021-05-24 11:39:07 +00:00
2021-05-24 13:01:04 +00:00
const alphabets = require("../dist/bundle.js");
2021-05-24 11:39:07 +00:00
2021-05-24 13:01:04 +00:00
const greek = ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ", "λ", "μ", "ν", "ξ", "ο", "π", "ρ", "σ", "τ", "υ", "φ", "χ", "ψ", "ω"];
const greekPolytonic = ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ", "λ", "μ", "ν", "ξ", "ο", "π", "ρ", "σ", "τ", "υ", "φ", "χ", "ψ", "ω"];
const latin = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
2021-05-24 11:39:07 +00:00
test('alphabets.latin should return Latin alphabet', () => {
expect(alphabets.latin).toStrictEqual(latin);
});
test('alphabets.greek should return Greek alphabet', () => {
expect(alphabets.greek).toStrictEqual(greek);
});
test('alphabets.greekPolytonic should return Greek (Polytonic) alphabet', () => {
expect(alphabets.greekPolytonic).toStrictEqual(greekPolytonic);
});