Skip to content

Commit

Permalink
Fix demo overlapping with unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 16, 2022
1 parent f62187e commit c68b62c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"scripts": {
"serve": "http-server . -o demo",
"serve": "http-server . -o demo -p 8080",
"watch": "rollup -c config/rollup.js -w",
"clean": "rimraf dist/* ",
"build": "cross-env NODE_ENV=production rollup -c config/rollup.js",
Expand Down
6 changes: 3 additions & 3 deletions test/HTMLTextStyle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('HTMLTextStyle', () =>
{
const style = new HTMLTextStyle();
const id = style.styleID;
const url = 'http://localhost:8080/resources/Herborn.ttf';
const url = 'http://localhost:8090/resources/Herborn.ttf';

await style.loadFont(url);

Expand All @@ -156,7 +156,7 @@ describe('HTMLTextStyle', () =>
it('should allow for family, style, weight overrides', async () =>
{
const style = new HTMLTextStyle();
const url = 'http://localhost:8080/resources/Herborn.ttf';
const url = 'http://localhost:8090/resources/Herborn.ttf';

await style.loadFont(url, {
family: 'MyFont',
Expand All @@ -178,7 +178,7 @@ describe('HTMLTextStyle', () =>
const style1 = new HTMLTextStyle();
const style2 = new HTMLTextStyle();
const style3 = new HTMLTextStyle();
const url = 'http://localhost:8080/resources/Herborn.ttf';
const url = 'http://localhost:8090/resources/Herborn.ttf';

await style1.loadFont(url);
await style2.loadFont(url);
Expand Down
2 changes: 1 addition & 1 deletion test/jest-global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join } from 'path';
export default async () =>
{
const rootPath = join(process.cwd(), './test');
const httpServerProcess = spawn('http-server', ['-c-1', rootPath], {
const httpServerProcess = spawn('http-server', [rootPath, '-c-1', '-p', '8090'], {
shell: process.platform === 'win32',
});

Expand Down

0 comments on commit c68b62c

Please sign in to comment.