~cyphermox/cordova-cli/flatten

« back to all changes in this revision

Viewing changes to node_modules/cordova/node_modules/plugman/spec/search.spec.js

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2013-12-12 05:26:53 UTC
  • Revision ID: mathieu-tl@ubuntu.com-20131212052653-eatjt8zguqua5qmq
testing the flattenage, yo

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
var search = require('../src/search'),
2
 
    Q = require('q'),
3
 
    registry = require('../src/registry/registry');
4
 
 
5
 
describe('search', function() {
6
 
    it('should search a plugin', function() {
7
 
        var sSearch = spyOn(registry, 'search').andReturn(Q());
8
 
        search(new Array('myplugin', 'keyword'));
9
 
        expect(sSearch).toHaveBeenCalledWith(['myplugin', 'keyword']);
10
 
    });
11
 
});