Skip to content

Commit

Permalink
fix(create-mud): add test for threejs template (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Apr 5, 2024
1 parent a9e8a40 commit 7e6cf98
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/threejs/packages/contracts/test/WorldTest.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.24;

import "forge-std/Test.sol";
import { MudTest } from "@latticexyz/world/test/MudTest.t.sol";
import { IWorld } from "../src/codegen/world/IWorld.sol";

contract WorldTest is MudTest {
function testWorldExists() public {
uint256 codeSize;
address addr = worldAddress;
assembly {
codeSize := extcodesize(addr)
}
assertTrue(codeSize > 0);
}
}

0 comments on commit 7e6cf98

Please sign in to comment.