File: package-entry.js

package info (click to toggle)
node-webpack-sources 3.2.3%2B~3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,452 kB
  • sloc: javascript: 5,369; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
describe("package-entry", () => {
	it("should not throw SyntaxError", () => {
		require("../");
	});
	it("should expose Sources", () => {
		for (const name of [
			"Source",
			"CachedSource",
			"ConcatSource",
			"OriginalSource",
			"PrefixSource",
			"RawSource",
			"ReplaceSource",
			"SizeOnlySource",
			"SourceMapSource",
			"CompatSource"
		]) {
			expect(require("../")[name]).toBe(require("../lib/" + name));
			expect(require("../")[name]).toBe(require("../lib/" + name));
		}
	});
});