This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Person | |
| { | |
| public string Name { get; set; } | |
| public Person BestFriend { get; set; } | |
| } | |
| [HttpGet] | |
| public ActionResult TestPeopleData() | |
| { | |
| var john = new Person { Name = "John" }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json", | |
| "packageManager": "npm", | |
| "reporters": [ | |
| "html", | |
| "clear-text", | |
| "progress" | |
| ], | |
| "checkers": ["typescript"], | |
| "tsconfigFile": "tsconfig.json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| verbose: true, | |
| preset: 'ts-jest', | |
| testEnvironment: 'jsdom', | |
| reporters: ["default"], | |
| coverageReporters: ["text", "text-summary"], | |
| collectCoverage: true | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| verbose: true, | |
| preset: 'ts-jest', | |
| testEnvironment: 'jsdom', | |
| reporters: ["default", "jest-teamcity"] | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "test": "jest" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| verbose: true, | |
| preset: 'ts-jest', | |
| testEnvironment: 'jsdom', | |
| reporters: ["default"] | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('FormIoJsonProcessor', () => { | |
| describe('test getComponentsCount', () => { | |
| it('should return correct components count for a form with 6 not nested components', () => { | |
| let formIoJsonProcessor = new FormIoJsonProcessor(); | |
| expect(formIoJsonProcessor | |
| .getRandomizableComponentsCount(formWith6NotNestedComponents)) | |
| .toBe(6); | |
| }) | |
| it('should treat FieldSet and Columns as a single component when counting components', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports.StockService = function (rootUrl: string) { | |
| this.rootUrl = rootUrl + "/Stock/"; | |
| }; | |
| module.exports.StockService.prototype.getStockInfo = function (articleId: Guid) { | |
| let url = this.rootUrl + "Info"; | |
| return get(url, { | |
| articleId: articleId | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports.StockService = function (rootUrl) { | |
| this.rootUrl = rootUrl + "/Stock/"; | |
| }; | |
| module.exports.StockService.prototype.getStockInfo = function (articleId) { | |
| let url = this.rootUrl + "Info"; | |
| return get(url, { | |
| articleId: articleId | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Guid } from 'guid-typescript'; | |
| export interface PersonAvatarViewModel { | |
| id: Guid; | |
| name: string; | |
| imageUrl: string; | |
| } |