0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 21:32:41 +00:00

Comment out one failing test

Patch failure test is no longer being thrown while we monitor in the background
This commit is contained in:
Trevor Buckner
2025-07-10 11:18:39 -04:00
parent b2c4bb7082
commit 45689d119e

View File

@@ -1085,24 +1085,25 @@ brew`);
expect(res.send).toHaveBeenCalledWith('{\"message\":\"The server copy is out of sync with the saved brew. Please save your changes elsewhere, refresh, and try again.\"}'); expect(res.send).toHaveBeenCalledWith('{\"message\":\"The server copy is out of sync with the saved brew. Please save your changes elsewhere, refresh, and try again.\"}');
}); });
it('should return error on applying patches', async ()=>{ // Commenting this one out for now, since we are no longer throwing this error while we monitor
const brewFromClient = { version: 1, hash: '098f6bcd4621d373cade4e832627b4f6', patches: 'not a valid patch string' }; // it('should return error on applying patches', async ()=>{
const brewFromServer = { version: 1, text: 'test', title: 'Test Title', description: 'Test Description' }; // const brewFromClient = { version: 1, hash: '098f6bcd4621d373cade4e832627b4f6', patches: 'not a valid patch string' };
// const brewFromServer = { version: 1, text: 'test', title: 'Test Title', description: 'Test Description' };
const req = { // const req = {
brew : brewFromServer, // brew : brewFromServer,
body : brewFromClient // body : brewFromClient,
}; // };
let err; // let err;
try { // try {
await api.updateBrew(req, res); // await api.updateBrew(req, res);
} catch (e) { // } catch (e) {
err = e; // err = e;
} // }
expect(err).toEqual(Error('Invalid patch string: not a valid patch string')); // expect(err).toEqual(Error('Invalid patch string: not a valid patch string'));
}); // });
it('should save brew, no ID', async ()=>{ it('should save brew, no ID', async ()=>{
const brewFromClient = { version: 1, hash: '098f6bcd4621d373cade4e832627b4f6', patches: '' }; const brewFromClient = { version: 1, hash: '098f6bcd4621d373cade4e832627b4f6', patches: '' };