@angular-wave/angular.ts 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/angular-ts.esm.js +1 -1
  2. package/dist/angular-ts.umd.js +1 -1
  3. package/package.json +1 -1
  4. package/src/binding.spec.js +4 -4
  5. package/src/core/location/location.js +1 -1
  6. package/src/exts/aria/aria.html +1 -4
  7. package/src/exts/messages/messages.html +1 -4
  8. package/src/router/directives/directives.test.js +19 -0
  9. package/src/router/directives/state-directives.html +21 -0
  10. package/src/router/{state-directives.spec.js → directives/state-directives.spec.js} +2 -1
  11. package/src/router/{view-directive.spec.js → directives/view-directive.spec.js} +2 -1
  12. package/src/router/directives/view-directives.html +21 -0
  13. package/src/router/router.html +22 -0
  14. package/src/router/router.test.js +11 -0
  15. package/src/router/services.spec.js +2 -2
  16. package/src/router/{state-builder.spec.js → state/state-builder.spec.js} +9 -12
  17. package/src/router/state/state.html +22 -0
  18. package/src/router/{state.spec.js → state/state.spec.js} +1 -1
  19. package/src/router/state/state.test.js +11 -0
  20. package/src/router/state-filter.spec.js +2 -2
  21. package/src/router/template-factory.spec.js +4 -4
  22. package/src/router/url/url.html +18 -0
  23. package/src/router/url/url.test.js +11 -0
  24. package/src/router/view/view.html +18 -0
  25. package/src/router/{view.spec.js → view/view.spec.js} +1 -1
  26. package/src/router/view/view.test.js +11 -0
  27. package/src/router/view-hook.spec.js +4 -4
  28. package/src/router/view-scroll.spec.js +4 -4
  29. package/src/services/http/http.html +22 -0
  30. package/src/services/http/http.test.js +11 -0
  31. package/src/services/http-backend/http-backend.html +21 -0
  32. package/src/services/http-backend/http-backend.js +1 -1
  33. package/src/services/http-backend/http-backend.spec.js +1 -1
  34. package/src/services/http-backend/http-backend.test.js +11 -0
  35. package/src/shared/common.spec.js +4 -4
  36. package/src/shared/hof.spec.js +1 -1
  37. package/src/shared/min-err.spec.js +2 -2
  38. package/src/shared/shared.html +22 -0
  39. package/src/shared/shared.test.js +11 -0
  40. package/src/shared/test-utils.js +2 -2
  41. package/src/shared/utils.spec.js +1 -1
  42. package/src/src.html +22 -0
  43. /package/src/router/{url-service.spec.js → url/url-service.spec.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@angular-wave/angular.ts",
3
3
  "license": "MIT",
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "type": "module",
6
6
  "main": "dist/angular-ts.esm.js",
7
7
  "browser": "dist/angular-ts.umd.js",
@@ -1,7 +1,7 @@
1
- import { jqLite, dealoc } from "../shared/jqlite/jqlite";
2
- import { publishExternalAPI } from "../public";
3
- import { createInjector } from "../injector";
4
- import { browserTrigger } from "./test-utils";
1
+ import { jqLite, dealoc } from "./shared/jqlite/jqlite";
2
+ import { publishExternalAPI } from "./public";
3
+ import { createInjector } from "./injector";
4
+ import { browserTrigger } from "./shared/test-utils";
5
5
 
6
6
  describe("binding", () => {
7
7
  let element,
@@ -1014,7 +1014,7 @@ export function $LocationProvider() {
1014
1014
  afterLocationChange(oldUrl, oldState);
1015
1015
  }
1016
1016
  });
1017
- if ($rootScope.$$phase !== ScopePhase.NONE) $rootScope.$digest();
1017
+ if ($rootScope.$$phase === ScopePhase.NONE) $rootScope.$digest();
1018
1018
  });
1019
1019
 
1020
1020
  // update browser
@@ -10,10 +10,7 @@
10
10
  <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
11
  <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
12
  <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
- <script
14
- type="module"
15
- src="/src/exts/aria/aria.spec.js"
16
- ></script>
13
+ <script type="module" src="/src/exts/aria/aria.spec.js"></script>
17
14
  </head>
18
15
  <body>
19
16
  <div id="dummy"></div>
@@ -10,10 +10,7 @@
10
10
  <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
11
  <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
12
  <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
- <script
14
- type="module"
15
- src="/src/exts/messages/messages.spec.js"
16
- ></script>
13
+ <script type="module" src="/src/exts/messages/messages.spec.js"></script>
17
14
  </head>
18
15
  <body>
19
16
  <div id="dummy"></div>
@@ -0,0 +1,19 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ test("unitstate-directives tests contain no errors", async ({ page }) => {
4
+ await page.goto("src/router/directives/state-directives.html");
5
+ await page.content();
6
+ await page.waitForTimeout(6000);
7
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
8
+ /0 failures/,
9
+ );
10
+ });
11
+
12
+ test("unit view-directives tests contain no errors", async ({ page }) => {
13
+ await page.goto("src/router/directives/view-directives.html");
14
+ await page.content();
15
+ await page.waitForTimeout(6000);
16
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
17
+ /0 failures/,
18
+ );
19
+ });
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/directives/state-directives.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -1,7 +1,7 @@
1
1
  import { jqLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
- import { browserTrigger, wait } from "../test-utils";
4
+ import { browserTrigger, wait } from "../../shared/test-utils";
5
5
 
6
6
  describe("ngStateRef", () => {
7
7
  window.location.hash = "";
@@ -19,6 +19,7 @@ describe("ngStateRef", () => {
19
19
  $stateParams;
20
20
 
21
21
  beforeEach(() => {
22
+ window.location.hash = "";
22
23
  window.angular = new Angular();
23
24
  publishExternalAPI();
24
25
  let module = window.angular.module("defaultModule", ["ng.router"]);
@@ -9,9 +9,10 @@
9
9
  import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
10
10
  import { Angular } from "../../loader";
11
11
  import { publishExternalAPI } from "../../public";
12
- import { wait } from "../test-utils";
12
+ import { wait } from "../../shared/test-utils";
13
13
 
14
14
  describe("ngView", () => {
15
+ window.location.hash = "";
15
16
  let $stateProvider,
16
17
  scope,
17
18
  $compile,
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/directives/view-directive.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/services.spec.js"></script>
14
+ <script type="module" src="/src/router/state-filter.spec.js"></script>
15
+ <script type="module" src="/src/router/template-factory.spec.js"></script>
16
+ <script type="module" src="/src/router/view-hook.spec.js"></script>
17
+ <script type="module" src="/src/router/view-scroll.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/router.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,5 +1,5 @@
1
- import { Angular } from "../../loader";
2
- import { publishExternalAPI } from "../../public";
1
+ import { Angular } from "../loader";
2
+ import { publishExternalAPI } from "../public";
3
3
 
4
4
  describe("router services", () => {
5
5
  let providers;
@@ -1,6 +1,7 @@
1
- import { StateBuilder } from "../../router/state/stateBuilder";
1
+ import { StateBuilder } from "../../router/state/state-builder";
2
2
 
3
- describe("Ng1 StateBuilder", function () {
3
+ // TODO refactor this to url service
4
+ xdescribe("StateBuilder", function () {
4
5
  const parent = { name: "" };
5
6
  let builder,
6
7
  matcher,
@@ -15,7 +16,7 @@ describe("Ng1 StateBuilder", function () {
15
16
  builder.builder("views", ng1ViewsBuilder);
16
17
  });
17
18
 
18
- it("should use the state object to build a default view, when no `views` property is found", function () {
19
+ xit("should use the state object to build a default view, when no `views` property is found", function () {
19
20
  const config = {
20
21
  url: "/foo",
21
22
  templateUrl: "/foo.html",
@@ -34,7 +35,7 @@ describe("Ng1 StateBuilder", function () {
34
35
  );
35
36
  });
36
37
 
37
- it("It should use the views object to build views, when defined", function () {
38
+ xit("It should use the views object to build views, when defined", function () {
38
39
  const config = { a: { foo: "bar", controller: "FooController" } };
39
40
  const builtViews = builder.builder("views")({
40
41
  parent: parent,
@@ -44,9 +45,7 @@ describe("Ng1 StateBuilder", function () {
44
45
  expect(builtViews.a.controller).toEqual(config.a.controller);
45
46
  });
46
47
 
47
- it("should not allow a view config with both component and template keys", inject(function (
48
- $injector,
49
- ) {
48
+ xit("should not allow a view config with both component and template keys", function () {
50
49
  const config = {
51
50
  name: "foo",
52
51
  url: "/foo",
@@ -68,14 +67,12 @@ describe("Ng1 StateBuilder", function () {
68
67
  expect(() =>
69
68
  builder.builder("views")(Object.assign({ bindings: {} }, config)),
70
69
  ).toThrow();
71
- }));
70
+ });
72
71
 
73
- it("should replace a resolve: string value with a function that injects the service of the same name", inject(function (
74
- $injector,
75
- ) {
72
+ it("should replace a resolve: string value with a function that injects the service of the same name", function () {
76
73
  const config = { resolve: { foo: "bar" } };
77
74
  expect(builder.builder("resolvables")).toBeDefined();
78
75
  const built = builder.builder("resolvables")(config);
79
76
  expect(built[0].deps).toEqual(["bar"]);
80
- }));
77
+ });
81
78
  });
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/state/state-builder.spec.js"
16
+ ></script>
17
+ <script type="module" src="/src/router/state/state.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -2,7 +2,7 @@ import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { isFunction } from "../../shared/utils";
5
- import { wait } from "../test-utils";
5
+ import { wait } from "../../shared/test-utils";
6
6
 
7
7
  describe("$state", () => {
8
8
  let $injector, template, ctrlName, $provide, $compile, module, $stateRegistry;
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/state/state.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,5 +1,5 @@
1
- import { Angular } from "../../loader";
2
- import { publishExternalAPI } from "../../public";
1
+ import { Angular } from "../loader";
2
+ import { publishExternalAPI } from "../public";
3
3
 
4
4
  describe("router filters", function () {
5
5
  let module, $parse, $state, $q, $rootScope, $location;
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc, jqLite } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("templateFactory", () => {
7
7
  let $injector,
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/url/url-service.spec.js"></script>
14
+ </head>
15
+ <body>
16
+ <div id="dummy"></div>
17
+ </body>
18
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/url/url.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/view/view.spec.js"></script>
14
+ </head>
15
+ <body>
16
+ <div id="dummy"></div>
17
+ </body>
18
+ </html>
@@ -13,7 +13,7 @@ import {
13
13
  import { PathNode } from "../../router/path/path-node";
14
14
  import { PathUtils } from "../../router/path/path-utils";
15
15
  import { tail } from "../../shared/common";
16
- import { wait } from "../test-utils";
16
+ import { wait } from "../../shared/test-utils";
17
17
 
18
18
  describe("view", () => {
19
19
  let scope,
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/view/view.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("view hooks", () => {
7
7
  let app,
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("ngView", () => {
7
7
  describe("scrollIntoView", () => {
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/services/http/http.spec.js"></script>
14
+ <script
15
+ type="module"
16
+ src="/src/services/http/template-request.spec.js"
17
+ ></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/services/http/http.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/services/http-backend/http-backend.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -201,7 +201,7 @@ export function createHttpBackend($browser, createXhr, $browserDefer) {
201
201
  ) {
202
202
  // cancel timeout and subsequent timeout promise resolution
203
203
  if (isDefined(timeoutId)) {
204
- $browserDefer.cancel(timeoutId);
204
+ $browser.cancel(timeoutId);
205
205
  }
206
206
  xhr = null;
207
207
 
@@ -1,6 +1,6 @@
1
1
  import { createInjector } from "../../injector";
2
2
  import { publishExternalAPI } from "../../public";
3
- import { createHttpBackend } from "../../services/http-backend";
3
+ import { createHttpBackend } from "./http-backend";
4
4
  import sinon from "sinon";
5
5
 
6
6
  describe("$httpBackend", () => {
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/services/http-backend/http-backend.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,7 +1,7 @@
1
- import { defaults, filter, map, mapObj, pick } from "../../shared/common";
2
- import { is, eq, not, pattern, val } from "../../shared/hof";
3
- import { isInjectable } from "../../shared/predicates";
4
- import { Queue } from "../../router/common/queue";
1
+ import { defaults, filter, map, mapObj, pick } from "./common";
2
+ import { is, eq, not, pattern, val } from "./hof";
3
+ import { isInjectable } from "./predicates";
4
+ import { Queue } from "../router/common/queue";
5
5
 
6
6
  describe("common", function () {
7
7
  describe("filter", function () {
@@ -1,4 +1,4 @@
1
- import { curry } from "../../shared/hof";
1
+ import { curry } from "./hof";
2
2
 
3
3
  describe("curry", () => {
4
4
  let original;
@@ -1,5 +1,5 @@
1
- import { minErr, isDefined, toDebugString } from "./shared/utils";
2
- import { errorHandlingConfig } from "./loader";
1
+ import { minErr, isDefined, toDebugString } from "./utils";
2
+ import { errorHandlingConfig } from "../loader";
3
3
 
4
4
  describe("errors", () => {
5
5
  afterEach(() => {});
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/shared/common.spec.js"></script>
14
+ <script type="module" src="/src/shared/hof.spec.js"></script>
15
+ <script type="module" src="/src/shared/min-err.spec.js"></script>
16
+ <script type="module" src="/src/shared/strings.spec.js"></script>
17
+ <script type="module" src="/src/shared/utils.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/shared/shared.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,4 +1,4 @@
1
- import { jqLite } from "../shared/jqlite/jqlite";
1
+ import { jqLite } from "./jqlite/jqlite";
2
2
 
3
3
  /**
4
4
  * @param {HTMLElement} element
@@ -16,5 +16,5 @@ export function browserTrigger(element, event) {
16
16
  * @returns
17
17
  */
18
18
  export function wait(t) {
19
- return new Promise((resolve, _) => setTimeout(resolve, t));
19
+ return new Promise((resolve) => setTimeout(resolve, t));
20
20
  }
@@ -1,4 +1,4 @@
1
- import { hashKey } from "../../shared/utils";
1
+ import { hashKey } from "./utils";
2
2
 
3
3
  describe("api", () => {
4
4
  describe("hashKey()", () => {
package/src/src.html ADDED
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/angular.spec.js"></script>
14
+ <script type="module" src="/src/binding.spec.js"></script>
15
+ <script type="module" src="/src/injector.spec.js"></script>
16
+ <script type="module" src="/src/loader.spec.js"></script>
17
+ <script type="module" src="/src/public.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>