Skip to content

Commit

Permalink
Consistent import names
Browse files Browse the repository at this point in the history
  • Loading branch information
catuhana committed Jul 18, 2024
1 parent a13f5bc commit 4f84837
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/extend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { assert, assertEquals, assertInstanceOf } from '@std/assert';

import { _extendTheme } from './extend.ts';
import {
type CatppuccinColors,
type CatppuccinFlavors,
type CatppuccinColors as CatppuccinColours,
type CatppuccinFlavors as CatppuccinFlavours,
flavorEntries as flavourEntries,
flavors as flavours,
} from '@catppuccin/palette';
Expand All @@ -22,8 +22,8 @@ describe('extending theme with defaults results an object in required format', (
'colors',
{
ctp: {
[flavour in keyof CatppuccinFlavors]: {
[colour in keyof CatppuccinColors]: string;
[flavour in keyof CatppuccinFlavours]: {
[colour in keyof CatppuccinColours]: string;
};
};
}
Expand All @@ -44,8 +44,8 @@ describe('extending theme with defaults results an object in required format', (
const theme = {} as Record<
'colors',
{
[flavour in keyof CatppuccinFlavors]: {
[colour in keyof CatppuccinColors]: string;
[flavour in keyof CatppuccinFlavours]: {
[colour in keyof CatppuccinColours]: string;
};
}
>;
Expand All @@ -66,8 +66,8 @@ describe('extending theme with defaults results an object in required format', (
'colors',
{
[CUSTOM_PREFIX]: {
[flavour in keyof CatppuccinFlavors]: {
[colour in keyof CatppuccinColors]: string;
[flavour in keyof CatppuccinFlavours]: {
[colour in keyof CatppuccinColours]: string;
};
};
}
Expand Down Expand Up @@ -104,7 +104,7 @@ describe("extending theme with 'defaultFlavour'", () => {
'colors',
{
ctp: {
[colour in keyof CatppuccinColors]: string;
[colour in keyof CatppuccinColours]: string;
};
}
>;
Expand All @@ -122,7 +122,7 @@ describe("extending theme with 'defaultFlavour'", () => {
const theme = {} as Record<
'colors',
{
[colour in keyof CatppuccinColors]: string;
[colour in keyof CatppuccinColours]: string;
}
>;

Expand All @@ -139,7 +139,7 @@ describe("extending theme with 'defaultFlavour'", () => {
'colors',
{
[CUSTOM_PREFIX]: {
[colour in keyof CatppuccinColors]: string;
[colour in keyof CatppuccinColours]: string;
};
}
>;
Expand Down Expand Up @@ -167,8 +167,8 @@ Deno.test('generated colours are accurate to Catppuccin', () => {
'colors',
{
ctp: {
[flavour in keyof CatppuccinFlavors]: {
[colour in keyof CatppuccinColors]: string;
[flavour in keyof CatppuccinFlavours]: {
[colour in keyof CatppuccinColours]: string;
};
};
}
Expand All @@ -195,10 +195,10 @@ Deno.test("conflicting keys don't override existing keys", () => {
} as Record<
'colors',
{
[colour in keyof CatppuccinColors]: string;
[colour in keyof CatppuccinColours]: string;
} & {
ctp: {
[colour in keyof CatppuccinColors]: string;
[colour in keyof CatppuccinColours]: string;
};
}
>;
Expand Down

0 comments on commit 4f84837

Please sign in to comment.