Skip to content

Commit 91e9fbd

Browse files
committed
js-tests - Check failed test
1 parent 091e950 commit 91e9fbd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/moodle-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
DB: ${{ matrix.database }}
198198
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
199199

200-
- name: PHP Lint
200+
- name: JS tests
201201
if: ${{matrix.moodle-branch == 'MOODLE_502_STABLE'}}
202202
run: |
203203
cd plugin/tests/jest

tests/jest/metadata.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ test('JSON stringify', () => {
55
const key = "isPartOf";
66
expect(metadata.reviver(key, value)).toEqual({value: 27});
77
});
8+
9+
test('JSON stringify', () => {
10+
const value = 27;
11+
const key = "isPartOf";
12+
expect(metadata.reviver(key, value)).toEqual({value: 33});
13+
});

0 commit comments

Comments
 (0)