1 | require("./common.js");
|
2 |
|
3 | var querystring = require("querystring");
|
4 |
|
5 | (function() {
|
6 | var lastfm;
|
7 |
|
8 | describe("default LastFmNode instance")
|
9 |
|
10 | before(function() {
|
11 | lastfm = new LastFmNode();
|
12 | })
|
13 |
|
14 | it("has default host", function() {
|
15 | assert.equal("ws.audioscrobbler.com", lastfm.host);
|
16 | });
|
17 | })();
|
18 |
|
19 | (function() {
|
20 | var lastfm;
|
21 |
|
22 | describe("LastFmNode options")
|
23 |
|
24 | before(function() {
|
25 | lastfm = new LastFmNode({
|
26 | api_key: "abcdef12345",
|
27 | secret: "ghijk67890"
|
28 | });
|
29 | })
|
30 |
|
31 | it("configures api key", function() {
|
32 | assert.equal("abcdef12345", lastfm.api_key);
|
33 | });
|
34 |
|
35 | it("configures secret", function() {
|
36 | assert.equal("ghijk67890", lastfm.secret);
|
37 | });
|
38 | })();
|