The way the backend is implemented doesn't really allow for good testing practices (woops). This is the first attempt at making the backend more testable so we can have more robust development.
Refactoring Notes
Old error checking compared 2 error messages together --> make error a constant and compare
New availabilitySheet interface allows for mocking. It's only responsible for fetching data from Google Sheets API.
Don't really care about testing the google sheets api.
Summary
The way the backend is implemented doesn't really allow for good testing practices (woops). This is the first attempt at making the backend more testable so we can have more robust development.
Refactoring Notes
availabilitySheet
interface allows for mocking. It's only responsible for fetching data from Google Sheets API.do{Op}()