'use strict';
var test = require('tape');
var Finder = require('../lib/finder');

test('Finder', function(t) {
    t.plan(3);
    t.ok(Finder, 'exports');
    t.ok(Finder.componentURL, 'exports componentURL');

    var componentURL = Finder.componentURL('foo:bar:baz:qux');
    t.equals(componentURL, './components/foo/bar/baz/qux/qux.js');
});

@@ -119,9 +119,9 @@
 lan(
-3
+6
 );%0A 
@@ -263,24 +263,24 @@
 :baz:qux');%0A
-
     t.equals
@@ -333,13 +333,695 @@
 ux.js');
+%0A%0A    var deps = Finder.findDependencies(%7B%0A        tree: '%3Cfamous:view%3E%3Cfamous:foo:bar famous:events:click=%22yaya%22%3E%3C/famous:foo:bar%3E%3C/famous:view%3E',%0A        behaviors: %7B%0A            '#foo': %7B%0A                'famous:bla:bleep:bloop': true%0A            %7D%0A        %7D%0A    %7D);%0A    t.deepEquals(deps, %5B'famous:foo:bar', 'famous:events', 'famous:foo', 'famous:bla:bleep'%5D);%0A%0A    var urls = Finder.subcomponentURLs('foo:bar:baz', %7B%0A        tree: 'sha.html',%0A        behaviors: 'yay.js'%0A    %7D);%0A    t.deepEquals(urls, %7B behaviors: './components/foo/bar/baz/yay.js', tree: './components/foo/bar/baz/sha.html' %7D);%0A%0A    var type = Finder.subcomponentType('bla/blee.js');%0A    t.equals(type, 'js');
 %0A%7D);%0A

Add more finder tests