Kristofer Walters, Knowit Objectnet, Oslo kw@knowit.no @kwltrs
Lightning talk at KDS 2014.
$ java -jar .\JsTestDriver-1.3.3d.jar --tests all | |
.FE | |
Total 3 tests (Passed: 1; Fails: 1; Errors: 1) (2,00 ms) | |
Chrome 15.0.874.121 Windows: Run 3 tests (Passed: 1; Fails: 1; Errors 1) (2,00 ms) | |
BugDemoTest.test failing failed (1,00 ms): AssertError: expected stub to have been called at least once but was never called | |
AssertError: expected stub to have been called at least once but was never called | |
at Object.fail (http://localhost:4224/test/sinon-1.2.0.js:2838:25) | |
at failAssertion (http://localhost:4224/test/sinon-1.2.0.js:2799:20) | |
at Object.called (http://localhost:4224/test/sinon-1.2.0.js:2822:17) | |
at Object.<anonymous> (http://localhost:4224/test/bug_demo_test.js:15:26) |
Kristofer Walters, Knowit Objectnet, Oslo kw@knowit.no @kwltrs
Lightning talk at KDS 2014.
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Web Components</title> | |
<link rel="import" href="star-rating.html"> | |
</head> | |
<body> | |
<form> | |
<input type="range" is="star-rating" name="rating"> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<link rel=import href=star-rating.html> | |
<style>input[type=range] { font-size: 3em; } output { font-size: 2em; padding-left: 2em; }</style> | |
</head> | |
<body> | |
<form> |
license: mit | |
height: 800 |
{ | |
"packages/ffe-accordion-react/src/Accordion.js": { | |
"description": "", | |
"displayName": "Accordion", | |
"methods": [], | |
"props": { | |
"children": { | |
"type": { | |
"name": "node" | |
}, |
import React, { useState } from 'react; | |
import { TabList, Tab } from '@sb1/ffe-tabs-react'; | |
() => { | |
const ids = { house: 'house', car: 'car' }; | |
const [activeTab, setActiveTab] = useState(ids.house); | |
const tabpanelProps = id => id === activeTab ? {} : {style: {display: 'none'}}; | |
return <> | |
<TabList value={activeTab} onChange={value => setAvtiveTab(value)}> |