1 /* vi: set et sw=4 ts=4 si: */
3 * Copyright (c) 2012, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
12 module("hoofbeats-musicbrainz", {
15 teardown: function() {
19 test("get artist data",
21 var name = "Regina Spektor";
22 var promise = MusicBrainz.getArtist(name);
24 promise.done(function(data) {
25 equals(data.name, name, "name matches");
30 test("get artist data, artist not found",
32 var name = "This artist does not exist";
33 var promise = MusicBrainz.getArtist(name);
35 promise.fail(function() {
36 equals(1, 1, "the method failed");