This file contains 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
{ | |
"ident": "GROUPINGDEMO", | |
"jsClassname": "Ic.view.protocol.ProtocolList", | |
"position": 1, | |
"active": true, | |
"version": "1", | |
"css": "icon-numbered-list", | |
"id": 1, | |
"category": { | |
"initializer": { }, |
This file contains 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
$response = $this->triggerDoctrineEvent( | |
DoctrineResourceEvent::EVENT_FETCH_ALL_PRE, | |
$this->getEntityClass(), | |
$data | |
); | |
if ($response->last() instanceof ApiProblem) { | |
return $response->last(); | |
} | |
$adapter = $queryProvider->getPaginatedQuery($queryBuilder); |
This file contains 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
{ | |
"Mathematik für Informatiker 1": { | |
"V": [ | |
{ | |
"Monday: 09:00-10:30": { | |
"location": "LdV-Hs 2", | |
"dates": [ | |
"2015/10/12 - Monday", | |
"2015/10/19 - Monday", | |
"2015/10/26 - Monday", |
This file contains 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
[ | |
{ | |
"0": { | |
"title": "(V): Advanced Operating Systems, Dr. H.-A. Schindler, Fak. IA" | |
}, | |
"1": { | |
"title": "(V): Fahrdynamik 1, DI Heidrich, FG Kraftfahrzeugtechnik, Fak. MB", | |
"location": "Kirchhoff-Hörsaal 2", | |
"until": "10:30" | |
}, |
This file contains 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
const fetch = require("node-fetch"); | |
const locations = [ | |
"Kärnten", | |
"Bad Kleinkirchheim", | |
"Heiligenblut", | |
"Katschberg", | |
"Kötschach-Mauthen", | |
"Mallnitz", | |
"Niederösterreich", |
This file contains 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 * as React from "react"; | |
import ReactDOM from "react-dom"; | |
import { Input } from "../"; | |
test("it initializes with a defaultValue", () => { | |
const containerDiv = document.createElement("div"); | |
const defaultValue = "DefaultValue"; | |
ReactDOM.render(<Input initialValue={defaultValue} />, containerDiv); | |
expect(containerDiv.querySelector("input").value).toBe( | |
defaultValue |
This file contains 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
export const sum = (x: number, y: number) => x + y; | |
test("it should add two numbers", () => { | |
// Arrange | |
const expected = 7; | |
// Act | |
const actual = sum(3, 4); | |
// Assert |
This file contains 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('Vehicle color function',()=>{ | |
it('should return blue for car',()=>{ | |
expect(vehicleColor('car')).toBe('blue'); | |
}); | |
}); |
This file contains 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
// posible test | |
describe("what is the unit under test?", () => { | |
it("define a test scenario that should be tested", () => { | |
//write your test here | |
}); | |
it("define an other test scenario that should be tested", () => { | |
//write your test here | |
}); | |
}); |
This file contains 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
function foo(x: number): string { | |
if (x) { | |
return x; | |
} | |
return "default string"; | |
} |
OlderNewer