Quality Assurance and Testing with Chai - Run Functional Tests on an API Response using Chai-HTTP IV - PUT method

Tell us what’s happening:

It keeps telling. Please help
[TypeError: data.assertions is undefined]
jQuery.Deferred exception: data.assertions is undefined

Your project link(s)

solution: https://boilerplate-mochachai--adiprazz31.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0

Challenge Information:

Quality Assurance and Testing with Chai - Run Functional Tests on an API Response using Chai-HTTP IV - PUT method

You have a syntax error the most outer callback function (Functional Tests) is not closed })

It should be closed at the bottom after all the code.

suite('Functional Tests', function() {
  // all your code
}) <- missing in your code

Your method chain for the last PUT test should look the same as the other tests. You are missing .keepOpen() in that chain.

1 Like

Oh i see, thanks :+1:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.