From 660be09d5180e439d4f8c56ff08279b40f8a08e0 Mon Sep 17 00:00:00 2001 From: binaryify <821374382@qq.com> Date: Fri, 1 Jul 2016 10:11:19 +0800 Subject: [PATCH] update version & update test.js --- package.json | 4 ++-- test/test.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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) })