const { callTool, parseToolResponse, ensureServer } = require('../helpers');
describe('get_playlist_info', () => {
beforeAll(async () => {
if (!process.env.BYPASS_AUTH_FOR_TESTS) {
throw new Error('BYPASS_AUTH_FOR_TESTS is not set. Set it in your .env to run tests.');
}
await ensureServer();
}, 60000);
test('returns expected playlist id', async () => {
const resp = await callTool('get_playlist_info', { playlistId: 'PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI' });
const obj = parseToolResponse(resp, 'get_playlist_info');
expect(obj && obj.id === 'PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI').toBe(true);
}, 60000);
});