mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
8 lines
319 B
TypeScript
8 lines
319 B
TypeScript
import { Features } from '@roleypoly/types';
|
|
import { hasFeature } from './hasFeature';
|
|
|
|
it('correctly matches against features', () => {
|
|
const features = Features.LegacyGuild;
|
|
expect(hasFeature(Features.LegacyGuild, features)).toBe(true);
|
|
expect(hasFeature(Features.LegacyGuild, Features.None)).toBe(false);
|
|
});
|