alan-turing-institute / simulate-frontend

Simulate frontend application.
http://simulate.readthedocs.io
0 stars 1 forks source link

Integration testing #42

Closed myyong closed 6 years ago

myyong commented 7 years ago

Comments refer to branch 42-integration-testing

masonlr commented 7 years ago
masonlr commented 7 years ago
screen shot 2017-08-31 at 6 39 44 pm
masonlr commented 7 years ago
    console.log("in save")
    let headers = new Headers({ 'Content-Type': 'application/json' });
    let options = new RequestOptions({ headers: headers });
    let response = this.http.patch(newJobUrl, jobData, options)
                    .catch(this.handleError);
    return response
  }

Okay as this.http.patch is used. I think that it is confusing to have newJobUrl as a variable name if the URL is serving multiple purposes. Renaming to jobsUrl may be less confusing.

myyong commented 7 years ago

Okay as this.http.patch is used. I think that it is confusing to have newJobUrl as a variable name if the URL is serving multiple purposes. Renaming to jobsUrl may be less confusing.

Agreed, have changed this.

masonlr commented 6 years ago

Closing due to migration to ant.design.