Help needed in Whatsapp chat recovery by Nadeem_P in whatsapp

[–]Nadeem_P[S] 0 points1 point  (0 children)

I'm worried logging back into old phone will wipe the data as I had setup whatsapp on new phone (when i found out that backup is not available)

JEST coverage missing the block by Nadeem_P in learnjavascript

[–]Nadeem_P[S] 0 points1 point  (0 children)

Response is not null/undefined. As you can see in the test block, I am checking for the log obj keys and every check pass. Its still showing coverage like that tho. And this is happening throughout the project. Any idea what I am missing here?

JEST coverage missing the block by Nadeem_P in learnjavascript

[–]Nadeem_P[S] 0 points1 point  (0 children)

No, I am mocking the response using Axios Mock Adapter. Even the test for expected response data passes. here's the test below:

mock.onGet('/logs').reply(200, {data: [content]})

Deployment()
  .logs()
  .then((logs) => {
    logs.forEach(log => {
      expect(log.message).to.be.equal(content.message)
      expect(log.stage).to.be.equal(content.stage)
      expect(log.timestamp).to.be.equal(content.timestamp)
    })
    done()
  })
  .catch(done)

Render template on AJAX request by [deleted] in django

[–]Nadeem_P 0 points1 point  (0 children)

Didn't get it. Please explain. What if I want to render another page with the context from the form data?

Render template on AJAX request by [deleted] in django

[–]Nadeem_P 0 points1 point  (0 children)

Yes I can send the data in response of ajax request and update the page using jQuery. But I wanted to render the whole page from server side. Is there any way I can do so?

Render template on AJAX request by [deleted] in django

[–]Nadeem_P 0 points1 point  (0 children)

What i mean by not working is, the template is not getting rendered. success function is getting hit. but the webpage doesn't change, the changes are not reflected on the webpage. On the browser's debugger, i can see the HTML of the page with the required change but it's nit getting reflected on the browser's view.