Skip to content

Instantly share code, notes, and snippets.

View dsibinski's full-sized avatar

Dawid Sibiński dsibinski

View GitHub Profile
class Person
{
public string Name { get; set; }
public Person BestFriend { get; set; }
}
[HttpGet]
public ActionResult TestPeopleData()
{
var john = new Person { Name = "John" };
{
"$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
"packageManager": "npm",
"reporters": [
"html",
"clear-text",
"progress"
],
"checkers": ["typescript"],
"tsconfigFile": "tsconfig.json",
module.exports = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
reporters: ["default"],
coverageReporters: ["text", "text-summary"],
collectCoverage: true
};
module.exports = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
reporters: ["default", "jest-teamcity"]
};
"scripts": {
"test": "jest"
}
module.exports = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
reporters: ["default"]
};
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', () => {
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
});
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
});
import { Guid } from 'guid-typescript';
export interface PersonAvatarViewModel {
id: Guid;
name: string;
imageUrl: string;
}