forked from scpwiki/wikijump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scpwiki#42 from scpwiki/javascript-test
[Web] Javascript testing
- Loading branch information
Showing
11 changed files
with
6,512 additions
and
1,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: JS tests | ||
on: | ||
# Run this on push to master | ||
push: | ||
branches: | ||
- master | ||
# Run this on push to PRs, regardless of branch | ||
pull_request: | ||
# [Monorepo] Only run this if there are changes to web | ||
# paths: | ||
# - "web/**" | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install | ||
run: npm install | ||
- name: Test | ||
run: npm run test |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import OZONE from "@/javascript/OZONE"; | ||
|
||
describe("arrayToPostData", () => { | ||
it("converts an object to a query string", () => { | ||
const obj = { one: "two", three: "four" }; | ||
expect(OZONE.utils.arrayToPostData(obj)).toEqual("one=two&three=four"); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters