Commit ada263ef authored by Jarrod's avatar Jarrod 💬

Test for & document `hskLevel`

parent b8fd90e3
Pipeline #1324 passed with stages
in 53 seconds
......@@ -22,10 +22,11 @@ let results = await dict.search('水')
* Always returns an array of results
[
{
"id": "a1e7fdf92f84aaca2675121d4b2b54eb5122bd97",
"id": "3f69904700c4fe2fb2caeb3f46501bc66ce245a4",
"simplified": "水",
"traditional": "水",
"pinyin": "shui3",
"hskLevel": 1,
"english": "surname Shui/water/river/...",
"radicalSimplified": "水",
"radicalTraditional": "水",
......@@ -44,11 +45,12 @@ let results = await dict.search('你好')
/*
[
{
id: '985dfa1015cc66c20f15a40d93baf0445c871d5b',
id: 'd3e4b9c5d696fe124825709a9a73aa3f01c61b2a',
simplified: '你好',
traditional: '你好',
pinyin: 'ni3 hao3',
english: 'hello/hi',
hskLevel: null,
radicalSimplified: null,
radicalTraditional: null,
strokesSimplified: null,
......@@ -70,7 +72,7 @@ let results = await dict.searchByRadical('水')
* Always returns an array of results
[
{
"id": "a1e7fdf92f84aaca2675121d4b2b54eb5122bd97",
"id": "3f69904700c4fe2fb2caeb3f46501bc66ce245a4",
"simplified": "水",
"traditional": "水",
"pinyin": "shui3",
......
......@@ -9,6 +9,7 @@ describe('search', () => {
simplified: '水',
traditional: '水',
pinyin: 'shui3',
hskLevel: 1,
radicalSimplified: '水',
radicalTraditional: '水',
strokesSimplified: 4,
......@@ -30,6 +31,7 @@ describe('search', () => {
simplified: '水',
traditional: '水',
pinyin: 'shui3',
hskLevel: 1,
radicalSimplified: '水',
radicalTraditional: '水',
strokesSimplified: 4,
......
......@@ -9,6 +9,7 @@ describe('search', () => {
simplified: '水',
traditional: '水',
pinyin: 'shui3',
hskLevel: 1,
radicalSimplified: '水',
radicalTraditional: '水',
strokesSimplified: 4,
......@@ -33,6 +34,7 @@ describe('search', () => {
simplified: '水',
traditional: '水',
pinyin: 'shui3',
hskLevel: 1,
radicalSimplified: '水',
radicalTraditional: '水',
strokesSimplified: 4,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment