Jannon 034205baa8 Testing Framework Upgrade Part II
The second half of the first phase of the testing framework upgrade.  This finishes moving the exisintg tests to jasmine and the new test directory structure
2012-05-04 18:52:19 -07:00

24 lines
964 B
JavaScript

describe("when a documented var memeber is inside a named function", function() {
var docSet = jasmine.getDocSetFromFile('test/fixtures/inner.js'),
found1 = docSet.getByLongname('sendMessage~encoding'),
found2 = docSet.getByLongname('sendMessage~encrypt');
it("A Doclet with the correct longname should be found", function() {
expect(found1.length).toEqual(1);
expect(found2.length).toEqual(1);
});
it("The short name should be correct", function() {
expect(found1[0].name).toEqual('encoding');
expect(found2[0].name).toEqual('encrypt');
});
it("The member of should be correct", function() {
expect(found1[0].memberof).toEqual('sendMessage');
expect(found2[0].memberof).toEqual('sendMessage');
});
it("The scope should default to 'inner'", function() {
expect(found1[0].scope).toEqual('inner');
expect(found2[0].scope).toEqual('inner');
});
});