You've already forked MenuGraphr
mirror of
https://github.com/FullScreenShenanigans/MenuGraphr.git
synced 2026-04-28 13:02:13 -07:00
Fixed setup for gulp-shenanigans 0.5.15
Tests needed to be updated to the new form.
This commit is contained in:
+1
-1
@@ -994,7 +994,7 @@ export class MenuGraphr implements IMenuGraphr {
|
||||
|
||||
return things;
|
||||
}
|
||||
|
||||
|
||||
// If the next word would pass the edge of the menu, move down a line
|
||||
if (x + this.computeFutureWordLength(words[i + 1], textWidth, textPaddingX) >= menu.right - menu.textXOffset - textPaddingRight) {
|
||||
x = menu.textX;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/// <reference path="../../node_modules/@types/chai/index.d.ts" />
|
||||
/// <reference path="../../node_modules/@types/mocha/index.d.ts" />
|
||||
/// <reference path="../../lib/MenuGraphr.d.ts" />
|
||||
/// <reference path="../utils/MochaLoader.ts" />
|
||||
/// <reference path="../utils/mocks.ts" />
|
||||
|
||||
mochaLoader.addTest("_", (): void => { });
|
||||
import { mochaLoader } from "../main";
|
||||
import { mocks } from "../utils/mocks";
|
||||
|
||||
mochaLoader.it("_", (): void => { });
|
||||
|
||||
+4
-2
@@ -1,9 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es3",
|
||||
"declaration": false
|
||||
"declaration": false,
|
||||
"module": "amd",
|
||||
"target": "es3"
|
||||
},
|
||||
"files": [
|
||||
"main.ts",
|
||||
"utils/mocks.ts",
|
||||
"utils/MochaLoader.ts",
|
||||
"MenuGraphr/_.ts"
|
||||
|
||||
+6
-4
@@ -1,10 +1,12 @@
|
||||
/// <reference path="../../lib/MenuGraphr.d.ts" />
|
||||
import { IMenuGraphr, IMenuGraphrSettings } from "../../src/IMenuGraphr";
|
||||
import { MenuGraphr } from "../../src/MenuGraphr";
|
||||
|
||||
const mocks = {
|
||||
|
||||
export const mocks = {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
mockMenuGraphr: (settings: MenuGraphr.IMenuGraphrSettings): MenuGraphr.IMenuGraphr => {
|
||||
return new MenuGraphr.MenuGraphr(settings);
|
||||
mockMenuGraphr: (settings?: IMenuGraphrSettings): IMenuGraphr => {
|
||||
return new MenuGraphr(settings);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user