Specifications for Calculator using Jasmine and TypeScript
Запись от 8Observer8 размещена 23.02.2019 в 01:08
Показов 1716
Комментарии 0
Метки typescript
|
Blog content In this instruction we will study how to write executable specifications for a very simple Calculator project using Jasmine testing framework. Source code on GitHub: https://github.com/8Observer8/... wserify-ts If you do not have "browserify" then install it globally using this command:
Create the folder "calculator-browserify-ts" and install the necessary package:
SpecRunner.html
If "b == 0" then method "Div" will throw an exception with the text: "Divided by zero".
Let's create the first specification in the "calculator_tests.ts":
calculator.ts
"tsconfig.specs.json"
Try to add another specifications for: Sub, Mul, and Div methods. Later I will add specification for "Divide by zero" exception. | |||||||||||||||||||||||||||||
Метки typescript
Размещено в Без категории
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
Всего комментариев 0
Комментарии


