angular-docs-cn/tools/transpiler/spec/functions_spec.js

14 lines
243 B
JavaScript
Raw Normal View History

import {describe, it, expect} from 'test_lib/test_lib';
2014-09-25 17:30:10 -04:00
function sum(a, b) {
return a + b;
}
export function main() {
describe('functions', function() {
it('should work', function() {
expect(sum(1, 2)).toBe(3);
});
});
2014-09-25 17:30:10 -04:00
}