Skip to content

Instantly share code, notes, and snippets.

@andreaj8
andreaj8 / gist:6521502
Created September 11, 2013 09:48
UNIT
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 29.0.1547 (Mac OS X 10.8.4)]: Connected on socket ltq8bxTuorpUO6NvZVOC
LOG: 'Hello test'
LOG: '2 test'
Chrome 29.0.1547 (Mac OS X 10.8.4) ControllerUnitTest ChildController test FAILED
Error: Unexpected request: GET /child
No more request expected
at Error (<anonymous>)
at $httpBackend (/Users/andreaj/Desktop/zeero.bitbucket.org/ubmhealth/client/tests/lib/angular/angular-mocks.js:934:9)
@andreaj8
andreaj8 / scenario.js
Created September 5, 2013 08:59
e2e test description
'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Ubmhealth', function() {
describe('Authentication', function() {
beforeEach(function() {
@andreaj8
andreaj8 / output
Created September 5, 2013 08:56
e2e tests launched by karam from script
WARN [config]: "/" is proxied, you should probably change urlRoot to avoid conflicts
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
WARN [launcher]: Can not load "Chrom", it is not registered!
Perhaps you are missing some plugin?
INFO [Safari 6.0.5 (Mac OS X 10.8.4)]: Connected on socket ESjEJOqow0O8qJg5U9xW
Safari 6.0.5 (Mac OS X 10.8.4) Ubmhealth Authentication Should render login page when user navigates to / FAILED
TypeError: 'undefined' is not a function (evaluating '$document.injector()')
Safari 6.0.5 (Mac OS X 10.8.4) Ubmhealth Authentication Should NOT render children page when user is not Logged FAILED
element '#children' click
Selector #children did not match any elements.
@andreaj8
andreaj8 / Geolocalizzation
Created July 26, 2013 09:24
Geolocalizzation Titanium
//var Cloud = require('ti.cloud');
Titanium.Geolocation.purpose = "GPS user coordinates";
Titanium.Geolocation.distanceFilter = 2; // set the granularity of the location event
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
// Titanium.Geolocation.preferredProvider = Titanium.Geolocation.PROVIDER_GPS;
exports.position = function(functionOnSuccess,functionOnError){
locationAdded = false;
var app = express();
app.set('views', __dirname + '/client/views');
app.set('view engine', 'jade');
app.use(express.logger('dev'))
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.methodOverride());