Closed chris-addison closed 6 years ago
Yeah, I can do that tomorrow. That's a much better idea.
I'll do it for the Google Code plugin
Should we make a general api interface, or one for each plugin?
I think each plugin may need its own unique api interface. For example Google Code needs a fetchIssuesPage function but other plugins probably do not.
That's true. Then, specific for each plugin it is.
I've finished porting the code. Feel free to take a look!
I don't like how these testing hooks require us to spam null checks everywhere. Can we instead separate the code that fetches the raw JSON into another file? I think something like this would be nice:
Then when we want to test we pass in a dummy API that gives back raw JSON.