Skip to content

Commit ac8b10a

Browse files
committed
AR-706: Fixed issues with tests
1 parent 8ef7f00 commit ac8b10a

File tree

15 files changed

+16
-15
lines changed

15 files changed

+16
-15
lines changed

.docker/vhost.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66
location / {
77
proxy_set_header X-Forwarded-For $remote_addr;
88
proxy_set_header Host $http_host;
9-
proxy_pass http://templates:3000/;
9+
proxy_pass http://node:3000/;
1010
}
1111

1212
location /build/ {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Work in progress. Contains base templates for OS2Display.
77
`index.html` serves a local setup for working with the templates.
88

99
```bash
10-
docker-compose run template npm install
10+
docker-compose run node npm install
1111
docker-compose up -d
1212
```
1313

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- app
1515
- frontend
1616
depends_on:
17-
- templates
17+
- node
1818
ports:
1919
- '80'
2020
volumes:
@@ -25,7 +25,7 @@ services:
2525
- "traefik.docker.network=frontend"
2626
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
2727

28-
templates:
28+
node:
2929
image: node:14
3030
command: npm start
3131
# @TODO: Fix setup so the ws connection between browser and webpack-dev-server can be achieved without exposing port.

src/book-review/book-review.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { shallow, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
44
import BookReview from "./book-review";
5-
import slides from "../../examples/src/slides";
5+
import slides from "../slides";
66

77
configure({ adapter: new Adapter() });
88

src/calendar/calendar.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { configure, mount } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import Calendar from "./calendar";
66

77
configure({ adapter: new Adapter() });

src/contacts/contacts.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { mount, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import Contacts from "./contacts";
66

77
configure({ adapter: new Adapter() });

src/iframe/iframe.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { shallow, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import IFrame from "./iframe";
66

77
configure({ adapter: new Adapter() });

src/image-text/image-text.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { shallow, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import ImageText from "./image-text";
66

77
configure({ adapter: new Adapter() });

src/meeting-room-schedule/meeting-room-schedule.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { shallow, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import MeetingRoomSchedule from "./meeting-room-schedule";
66

77
configure({ adapter: new Adapter() });

src/poster/poster.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { shallow, configure } from "enzyme";
33
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
4-
import slides from "../../examples/src/slides";
4+
import slides from "../slides";
55
import Poster from "./poster";
66

77
configure({ adapter: new Adapter() });

0 commit comments

Comments
 (0)