mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
tla does not work on client
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import assert from "assert";
|
||||
import {
|
||||
checkWhere,
|
||||
checkPackageVars,
|
||||
checkWhere,
|
||||
} from "./common";
|
||||
|
||||
export const where = "client";
|
||||
export * from "./common";
|
||||
|
||||
await checkWhere(where);
|
||||
checkWhere(where);
|
||||
|
||||
var style = require("./css/imported.css");
|
||||
if (! style) {
|
||||
|
||||
@@ -450,7 +450,7 @@ describe("Meteor packages", () => {
|
||||
assert.ok(error instanceof Error);
|
||||
});
|
||||
|
||||
it("can be local", () => {
|
||||
it("can be local", async () => {
|
||||
// ModulesTestPackage is only api.export-ed on the server.
|
||||
if (Meteor.isServer) {
|
||||
assert.strictEqual(ModulesTestPackage, "loaded");
|
||||
@@ -460,7 +460,7 @@ describe("Meteor packages", () => {
|
||||
}
|
||||
|
||||
// But it is importable by both client and server.
|
||||
const mtp = require("meteor/modules-test-package");
|
||||
const mtp = await require("meteor/modules-test-package");
|
||||
assert.strictEqual(mtp.ModulesTestPackage, "loaded");
|
||||
|
||||
assert.strictEqual(mtp.where, Meteor.isServer ? "server" : "client");
|
||||
|
||||
Reference in New Issue
Block a user