Core logic for Oblique Strategies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
647 B

  1. import { describe, it, expect } from 'vitest';
  2. import { generate, getDefaultCards } from '../src';
  3. describe('oblique-strategies-core', () => {
  4. describe('generate', () => {
  5. it('generates a card from the default', () => {
  6. expect(generate()).toEqual(expect.any(String));
  7. });
  8. it('generates a card from the provided set of cards', () => {
  9. expect(generate(['foo', 'bar'])).toEqual(expect.any(String));
  10. });
  11. });
  12. describe('getDefaultCards', () => {
  13. it('gets the set of default cards', () => {
  14. expect(getDefaultCards()).toEqual(expect.arrayContaining([
  15. expect.any(String),
  16. ]));
  17. });
  18. });
  19. });