Skip to content

Commit

Permalink
test(config): Fix config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowman2 committed Nov 11, 2018
1 parent bdc0093 commit 089ee64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test-utils.ts
Expand Up @@ -18,7 +18,7 @@ export const getDemoMetadata = (): GameMetadata => ({

export const metadataWithOptions = (opts: Partial<GameOptions>) => {
const metadata = getDemoMetadata();
metadata.options = opts;
(metadata as any).options = opts;
return metadata;
};

Expand Down
2 changes: 1 addition & 1 deletion test/unit/config.test.ts
Expand Up @@ -815,7 +815,7 @@ describe("Config", function() {
describe("InstanceOptions", function() {
it("The properties of InstanceOptions cannot be modified", function() {
const myGame = buildGameInstance();
expect(() => (myGame.options.debug = true)).to.throw(
expect(() => ((myGame.options as any).debug = true)).to.throw(
RegalError,
"Cannot modify the properties of InstanceOptions."
);
Expand Down

0 comments on commit 089ee64

Please sign in to comment.