您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
21 行
487 B
21 行
487 B
4 年前
|
import assert from "assert";
|
||
|
|
||
|
describe("skel", function () {
|
||
|
it("package.json has correct name", async function () {
|
||
|
const { name } = await import("../package.json");
|
||
|
assert.strictEqual(name, "skel");
|
||
|
});
|
||
|
|
||
|
if (Meteor.isClient) {
|
||
|
it("client is not server", function () {
|
||
|
assert.strictEqual(Meteor.isServer, false);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
if (Meteor.isServer) {
|
||
|
it("server is not client", function () {
|
||
|
assert.strictEqual(Meteor.isClient, false);
|
||
|
});
|
||
|
}
|
||
|
});
|