Skip to content

Instantly share code, notes, and snippets.

Avatar

Taras Mankovski taras

View GitHub Profile
View 1-mocha-example-test.js
let app = createAppInteractor();
let signin = createAppInteractor();
describe("sign-in", () => {
describe("when user is anonymous", () => {
beforeEach(async () => {
await app.visit('/sign-in');
});
it("shows sign-in page", () => {
View signin-test.tsx
import { TestImplementation, Assertion, Test } from "@bigtest/suite";
const visit = (path: string) => async () => ({ path });
const exists = (selector: string) => () => ({ selector });
const notExists = (selector: string) => () => ({ selector });
const assert = (fn: () => boolean, expected: unknown) => (context: unknown) =>
Promise.resolve(expected);
const click = (selector: string) => async () => Promise.resolve();
const fillIn = (selector: string, value: string) => async () =>
Promise.resolve();
View sign-in.test.ts
{
description: "Sigin in via Modal",
steps: [
{
description: "visit home",
action: (context) => visit('/')
},
{
description: "does sign in button exist?"
action: Modal.isVisible()
View results.test.txt
CustomPackageEditVisibility
visiting the package edit page with a hidden package and a hidden reason
✔ displays the correct visibility status
✔ displays the hidden/reason section
✔ disables the save button
clicking cancel
✔ goes to the package show page
toggling the visiblity field
clicking cancel
✔ shows a navigation confirmation modal
View file.js
{ nodeName: 'ROOT',
style: {},
attributes: {},
childNodes:
[ { nodeName: 'DIV',
style: { flexDirection: 'column', flexGrow: 0, flexShrink: 1 },
attributes: {},
childNodes:
[ { nodeName: 'DIV',
style: { flexDirection: 'row', flexGrow: 0, flexShrink: 1 },
View date-workflow.yml
jobs:
job_name:
name: Job Name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish Gateway Releases
uses: thefrontside/actions/publish-gateways@master
with:
npm_publish: npm run my-script
View companies.md

URL: /companies

{
	"data": [
		{
			"id": "ABCDE",
			"type": "company",
			"attributes": {
				"name": "ABCDE Inc"
			},
@taras
taras / task-lifting.js
Created Jul 19, 2019 — forked from cowboyd/task-lifting.js
What is the relationship between tasks and execution trees?
View task-lifting.js
import { execute, call } from 'effection';
// One of the things that struck me was that when I was doing the
// implementation for the `enqueue` function in the task constraining
// functions
// (https://gist.github.com/cowboyd/19122da0c59c674cdea86cf6d70e9c75),
// was the eventual form it took.
//
// Like the other task constructors, it returned a function. Let's
View tasky-react.jsx
import { ReactDOM } from 'react-dom';
import { useTask, useRender } from 'concurrent-react';
const { TaskContext, perform } = useTask(function *(rootElement) {
const render = useRender(ReactDOM);
while (true) {
yield render(<MyApp />, rootElement);
}
});
View 1_rotating_text.fs
(CycleText "FlutterScript" "is" "Cool"
textStyle: (TextStyle
fontSize: 40.0
color: (color “red”)
))
You can’t perform that action at this time.