git help
встроенная помощь git со списком всех доступных git-команд. Выход из режима просмотра - клавишаq
.git help <command>
помощь по отдельным командам, например:git help status
git clone <link to you repo>
копирование удаленного репозитория на локальный диск (в текущей директории будет создана папка по названию проектаgit status
список файлов с текущими изменениямиgit diff
просмотр всез текущих измененийgit diff my-file.html
просмотр изменений конкретного файлаgit commit -am "my comment about changes"
git push
отгрузка коммитов на удаленный репозиторийgit log -5
просмотр последних 5 коммитовgit log -1 -p
просмотр изменений последнего коммита
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 { createMachine, assign, interpret } from 'xstate'; | |
// const Machine = createMachine | |
const machine = Machine({ | |
id: 'lnd', | |
initial: 'idle', | |
context: { | |
isNewWallet: true, | |
fundingAddress: null, | |
balance: 0, |
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 { createMachine, assign, interpret } from 'xstate'; | |
// const Machine = createMachine | |
const genSeed = () => { | |
return new Promise((resolve, reject) => { | |
resolve([1,2,3,4,5]) | |
}) | |
} | |
const initWallet = () => { | |
return new Promise((resolve, reject) => { |
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
language: node_js | |
node_js: 7.3 | |
cache: yarn | |
addons: | |
firefox: "latest-esr" | |
# Install D-Bus here | |
apt: | |
packages: | |
- dbus-x11 | |
before_install: |
This file has been truncated, but you can view the full file.
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
travis_fold:start:worker_info | |
[0K[33;1mWorker information[0m | |
hostname: d473378f-19f7-4bca-8a03-7cb64bdde56b@1.production-1-worker-com-c-2-gce | |
version: v3.0.2 https://github.com/travis-ci/worker/tree/f1c05caed79c66a9103f12a22e8a45ec66dbca64 | |
instance: testing-gce-f79c2015-05b8-4f05-92ae-330425d36569:travis-ci-garnet-trusty-1503972833 (via amqp) | |
startup: 21.275902191s | |
travis_fold:end:worker_info | |
[0Ktravis_fold:start:system_info | |
[0K[33;1mBuild system information[0m | |
Build language: node_js |
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
sudo: required | |
language: node_js | |
node_js: 7.3 | |
addons: | |
firefox: "51.0" | |
cache: yarn | |
before_install: | |
- "export DISPLAY=:99.0" | |
- "export DEBUG=testee:*" |
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
{ | |
"result": { | |
"txid": "62fe533dc5a506716affa362ca5cb7bba5232150ce5c676c56d6be6769022c52", | |
"hash": "62fe533dc5a506716affa362ca5cb7bba5232150ce5c676c56d6be6769022c52", | |
"size": 264, | |
"vsize": 264, | |
"version": 1, | |
"locktime": 0, | |
"vin": [ | |
{ |
Show how to test RESTful front-end models that use socket.io as its transport.
- Warm up: build a small app with realtime communication using
socket.io
(maybe a chat). - Refactor: rebuild model layer to be RESTful via sockets.
- Ask how should we test this, and talk about options.
- Show what
can-socket-fixture
is for, and try to test with it.
To test a module that uses socket.io
we need to intercept a socket.io
connection and mock a server responses. If a module tries to establish a socket.io
connection immediately on a module evaluation then it won't reach the mocked socket.io
.
To overcome the problem we either have to delay the evaluation of the modules we test, or delay establishing the socket.io
connection.
The steal-socket package addresses the problem using the second option.
NewerOlder