diff --git a/package.json b/package.json index 19e277d..e5e5ce4 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "NeteaseCloudMusicApi", - "version": "1.1.8", + "version": "1.2.1", "description": "网易云音乐nodejs版接口模块", "main": "build/app.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "babel-node test/test.js", "build": "babel src/ -d build/" }, "keywords": ["NeteaseCloudMusic","网易云音乐"], diff --git a/test/test.js b/test/test.js index c5d31af..7ed98e6 100644 --- a/test/test.js +++ b/test/test.js @@ -1,11 +1,11 @@ import { api } from '../src/app.js' -api.search("年度之歌",(data)=>{ +api.search("年度之歌",data=>{ console.log(data) }) -api.song('308169',(data)=>{ +api.song('308169',data=>{ console.log(data) }) -api.lrc('5243023',(data)=>{ +api.lrc('5243023',data=>{ console.log(data) })