Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Add a validation for the movie's imdbId #10

Merged
merged 1 commit into from
May 17, 2016

Commits on May 16, 2016

  1. Add a validation for the movie's imdbId

    There was a missing validation to get a movie's imdbId. It was only checking if there was an anchor with a href attribute, but not if the href attribute contained 'imdb'. So if there was no imdb anchor, the regex was still called, but on an undefined value.
    
    Update the tests movies to work, since the movies in the tests are no longer in theaters (may need to find a permanent solution).
    
    Added 2 tests to test the 2 validations : theathers not found & movie not found.
    jpgdev committed May 16, 2016
    Configuration menu
    Copy the full SHA
    20e76d3 View commit details
    Browse the repository at this point in the history