diff --git a/tests/RequireByString.test.cpp b/tests/RequireByString.test.cpp index bc1161b0..359e3fca 100644 --- a/tests/RequireByString.test.cpp +++ b/tests/RequireByString.test.cpp @@ -349,7 +349,7 @@ TEST_CASE_FIXTURE(ReplWithPathFixture, "CheckCacheAfterRequireLua") std::string absolutePath = getLuauDirectory(PathType::Absolute) + "/tests/require/without_config/lua_dependency"; luaL_findtable(L, LUA_REGISTRYINDEX, "_MODULES", 1); - lua_getfield(L, -1, (absolutePath + ".luau").c_str()); + lua_getfield(L, -1, (absolutePath + ".lua").c_str()); REQUIRE_MESSAGE(lua_isnil(L, -1), "Cache already contained module result"); runProtectedRequire(relativePath); diff --git a/tests/require/without_config/lua/init.lua b/tests/require/without_config/lua/init.lua index 7ffc4cb9..2c5e7507 100644 --- a/tests/require/without_config/lua/init.lua +++ b/tests/require/without_config/lua/init.lua @@ -1 +1 @@ -return { "result from init.luau" } +return { "result from init.lua" }