npm -g i eslint eslint-config-standard eslint-config-standard-jsx eslint-config-standard-react eslint-plugin-flow-vars eslint-plugin-promise eslint-plugin-react eslint-plugin-standard babel-eslint
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
\(currentTab.currentSession.path) - \(currentTab.title) |
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
/** | |
* Checks if the given element exists in the DOM. | |
* | |
* ``` | |
* this.demoTest = function (client) { | |
* browser.assert.noErrorLogs() | |
* } | |
* ``` | |
* | |
* @method noErrorLogs |
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
<!-- the normal html --> | |
<%= htmlWebpackPlugin.options.raven %> | |
</body> | |
</html> |
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 React from 'react' | |
import { | |
shallow, | |
} from 'enzyme' | |
import WrapMany from './WrapMany' | |
describe('<WrapMany />', () => { | |
let sandbox |
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 React from 'react' | |
import { | |
shallow, | |
render, | |
} from 'enzyme' | |
import _ from 'lodash' | |
import Component from './Component' | |
import stylesClass from './Component.scss' | |
// Step 1: this next line is important since the finders expect a '.' at the string start |
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 React from 'react' | |
import { | |
shallow | |
} from 'enzyme' | |
describe('<DumbComponent />', () => { | |
let sandbox | |
let props | |
beforeEach(() => { |
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
# Debuging path access | |
old_get = fb.core.Repo.prototype.addEventCallbackForQuery | |
fb.core.Repo.prototype.addEventCallbackForQuery = (query, eventRegistration) -> | |
console.log "get " + query.path.pieces_.join '/' | |
old_get.call @, query, eventRegistration | |
old_set = fb.core.Repo.prototype.setWithPriority | |
fb.core.Repo.prototype.setWithPriority = (path, newVal, newPriority, onComplete) -> | |
console.log "set " + path.pieces_.join '/' | |
old_set.call @, path, newVal, newPriority, onComplete |
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
login: function(user) { | |
return $q(function(resolve, reject) { | |
BACKEND.authWithPassword(user, function(error, authData) { | |
if (error === null) { | |
// user authenticated with Firebase | |
getUserData(authData); | |
temporaryPassword = authData.password.isTemporaryPassword; | |
authServiceError = {}; | |
resolve('logged in'); | |
} else { |
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
Check_Event: (ref, child, callback) -> | |
ref | |
.child child | |
.once 'value', (snapshot) -> | |
exists = snapshot.val() isnt null | |
callback exists | |
return |
NewerOlder