Example #1
0
        it('should expose methods required by the interface', function() {
            var templFolder = _folder.createFolder(TEMPLATE_DIR);
            var targetFolder = _folder.createFolder(TARGET_DIR);

            var templater = _template.getTemplater(templFolder, targetFolder);
            var errors = _testObj.verifyInterface(templater, {
                'getItemTypes': 'function',
                'getArtifacts': 'function',
                'createItem': 'function'
            });
            expect(errors).toEqual([]);
        });
Example #2
0
 it('should expose the the methods required by the interface', function() {
     var errors = _testObj.verifyInterface(_template, {
         'getTemplater': 'function'
     });
     expect(errors).toEqual([]);
 });