You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by stevengill <gi...@git.apache.org> on 2017/08/11 17:04:50 UTC

[GitHub] cordova-lib pull request #582: CB-12361 : added tests for plugin/search.js

Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/582#discussion_r132736117
  
    --- Diff: spec/cordova/plugin/search.spec.js ---
    @@ -44,7 +44,36 @@ describe('cordova/plugin/search', function () {
                 console.error(e);
             }).done(done);
         });
    -    it('should open a link to cordova.apache.org/plugins if no plugins are provided as parameter');
    -    it('should open a link to cordova.apache.org/plugins, providing the plugins passed in as a query-string parameter');
    -    it('should fire the after_plugin_search hook');
    +
    +    it('should open a link to cordova.apache.org/plugins if no plugins are provided as parameter', function (done) {
    +        var opts = {important: 'options', plugins: []};
    +        search(hook_mock, opts).then(function () {
    +            expect(opener_mock).toHaveBeenCalled();
    +        }).fail(function (e) {
    +            console.log(e);
    --- End diff --
    
    Don't think you need console.log(e) since you console.error two lines below


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org