diff --git a/docker-compose.yml b/docker-compose.yml index 6d4d7b7..88527e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: app: build: context: ./ - dockerfile: Containerfile + dockerfile: Dockerfile.dev environment: DEBUG: "combine.fm*" VUE_ENV: server @@ -30,7 +30,7 @@ services: worker: build: context: ./ - dockerfile: Containerfile + dockerfile: Dockerfile.dev environment: DEBUG: "combine.fm*" VUE_ENV: server diff --git a/test/lookup.js b/test/lookup.js index aa2bc1e..ab4d588 100644 --- a/test/lookup.js +++ b/test/lookup.js @@ -1,11 +1,9 @@ -import "should"; -import lookup from "../lib/lookup.js"; +import 'should'; +import lookup from '../lib/lookup.js'; -describe("Search with url", function() { - it("should find album by url", async function() { - const result = await lookup( - "https://open.spotify.com/album/5TbRo1rBrhgHSTB4i2wdZS" - ); - result.name.should.equal("Atom Bomb"); +describe('Search with url', function(){ + it('should find album by url', async function (){ + const result = await lookup('https://play.google.com/music/m/Bw2bwajaddrgr5vakp3vluqothq'); + result.name.should.equal('Breaking'); }); }); diff --git a/test/services/spotify.sync-conflict-20250612-195820-SCF3HLT.js b/test/services/spotify.sync-conflict-20250612-195820-SCF3HLT.js deleted file mode 100644 index 93c788e..0000000 --- a/test/services/spotify.sync-conflict-20250612-195820-SCF3HLT.js +++ /dev/null @@ -1,46 +0,0 @@ -import 'should'; -import * as spotify from '../../lib/services/spotify/index.js'; - -describe('Spotify', function(){ - describe('init', function(){ - it('should have secrets', async function (){ - process.env.SPOTIFY_CLIENT_ID.should.exist(); - }); - }); - - describe('lookupId', function(){ - it('should find album by ID', async function (){ - const result = await spotify.lookupId('77UW17CZFyCaRLHdHeofZu', 'album'); - result.name.should.equal('Listen'); - }); - - it('should find track by ID', async function (){ - const result = await spotify.lookupId('7dS5EaCoMnN7DzlpT6aRn2', 'track'); - result.name.should.equal('Take Me To Church'); - }); - }); - - describe('search', function(){ - it('should find album by search', async function (){ - const result = await spotify.search({type: 'album', artist: {name: 'David Guetta'}, name: 'Listen (Deluxe)'}); - result.name.should.equal('Listen (Deluxe)'); - }); - - it('should find br album by search', async function (){ - const result = await spotify.search({type: 'album', artist: {name: 'Anavitória'}, name: 'Fica'}); - result.name.should.equal('Fica'); - }); - - it('should find album by various artists by search', async function (){ - const result = await spotify.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Get Down Part II: Original Soundtrack From The Netflix Original Series'}); - result.name.should.equal('The Get Down Part II: Original Soundtrack From The Netflix Original Series'); - }); - }); - - describe('parseUrl', function(){ - it('should parse url into ID', async function (){ - const result = await spotify.parseUrl('https://play.spotify.com/album/77UW17CZFyCaRLHdHeofZu'); - result.id.should.equal('77UW17CZFyCaRLHdHeofZu'); - }); - }); -});