Fixed setup for gulp-shenanigans 0.5.15

Tests needed to be updated to the new form.
This commit is contained in:
Josh Goldberg
2016-10-09 20:17:30 -07:00
parent a825597f17
commit 8ea553cb8d
4 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -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;
+4 -4
View File
@@ -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
View File
@@ -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
View File
@@ -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);
}
};