Files
meteor/tools/tests/apps/modules/server/only.js
Ben Newman 1df6668cc9 Test that importing the winston npm package works now.
This is a test that should have accompanied my previous commit
81a07ed84f.
2017-05-29 19:37:33 -04:00

23 lines
648 B
JavaScript

import assert from "assert";
import "github";
import "aws-sdk";
import "stripe";
import "mssql";
import winston from "winston";
import * as winstonNamespace from "winston";
assert.strictEqual(typeof winston.default, "object");
assert.strictEqual(typeof winston.transports.Console, "function");
assert.strictEqual(winstonNamespace.default, winston);
// This package has a native .node module as the "main" property of its
// package.json file. (#7947)
import { start } from "idle-gc";
assert.strictEqual(typeof start, "function");
assert.strictEqual(Meteor.isServer, true);
assert.strictEqual(Meteor.isClient, false);
export default module.id;