Skip to content

Commit

Permalink
fix: fix frontend test; remove backend comment; added token to pr ope…
Browse files Browse the repository at this point in the history
…n pipeline
  • Loading branch information
catherine meng authored and catherine meng committed Jul 7, 2022
1 parent 9bd13d6 commit 3b4c7d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
target: prod-backend
tags: |
${{ github.event.number }}-backend
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
target: prod-frontend
tags: |
${{ github.event.number }}-frontend
Expand Down
3 changes: 0 additions & 3 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ async function bootstrap() {
if (!origin || whitelist.indexOf(origin) !== -1) {
callback(null, true);
}
// else {
// callback(new Error('Not allowed by CORS'));
// }
},
});

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/tests/MainHeader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import MainHeader from "../common/MainHeader.vue";
describe("MainHeader", () => {
it("renders properly", () => {
const wrapper = mount(MainHeader);
expect(wrapper.text()).toContain("FSA - Old Growth");
expect(wrapper.text()).toContain("FSA - Forest Client");
});
});

0 comments on commit 3b4c7d3

Please sign in to comment.