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
renderPlaybackError() { | |
const { | |
playbackErrorTheme, | |
sharedTheme, | |
playbackErrorChildren, | |
backgroundInline, | |
} = this.props; | |
const { renderPlaybackError, playbackErrorText } = this.state; | |
return ( |
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
define([ "device" ], function (d) { | |
describe("device", function () { | |
var device; | |
var w; | |
describe("ie6", function () { | |
before(function () { | |
w = { |
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
Given the user is an artist and is logged in | |
And the user has one or ore tracks that already meet quality standards | |
Then the user is prompted to upload a track with message "Do you want to upload a track?" | |
And when the user selects a track and chooses Yes | |
Then the track is posted | |
And the user is shown their Profile | |
Story: Show FX network series channels |
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 { Marker } from './Constants'; | |
const { EMPTY_CELL } = Marker; | |
function _Board(grid) { | |
if(!grid){ | |
grid = [ | |
EMPTY_CELL, EMPTY_CELL, EMPTY_CELL, | |
EMPTY_CELL, EMPTY_CELL, EMPTY_CELL, |
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
let board; | |
resetToEmptyBoard(); | |
function getBoard() { | |
return board; | |
} | |
function cellIsEmpty(position){ | |
const empty = board[position] === ' '; | |
return empty; |
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
/* | |
Some really awful code | |
*/ | |
// ****** UI ****** | |
// for this blog post we'll pretend this is some working React code as the UI | |
const dashboard = { | |
on: () => { | |
return "<Dashboard on />" |
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
let | |
board = | |
[ empty, empty, empty, empty, empty, empty, empty, empty, empty ] | |
centerPosition = | |
get 4 board |
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
Function `get` is expecting the 2nd argument to be: | |
Array.Array a | |
But it is: | |
List Char |
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
-- this is a list | |
board = | |
[ markerX, markerX, markerX, empty, empty, empty, empty, empty, empty ] | |
-- lets make an array from the list | |
cells = | |
fromList board | |
-- access a value at a certain index of the array | |
get 0 cells |
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
{--| | |
This file's tests just contain some pseudo code that will get the test setup to pass by calling an Elm module | |
it just illustrates how to setup and use elm-test-bdd-style | |
Notice how below we can use Expect style from both elm-test AND elm-test-bdd-style | |
https://package.elm-lang.org/packages/rogeriochaves/elm-test-bdd-style/latest | |
--} | |
module ExampleSpec exposing (..) |