Added test for preserving visitorData on update and removed debugger statements
This commit is contained in:
parent
68858ca1a3
commit
d8268e4a9b
@ -32,6 +32,22 @@ module.exports = {
|
||||
'number'
|
||||
],
|
||||
|
||||
ratingShapeTypes: [
|
||||
'Heart',
|
||||
'Star',
|
||||
'thumbs-up',
|
||||
'thumbs-down',
|
||||
'Circle',
|
||||
'Square',
|
||||
'Check Circle',
|
||||
'Smile Outlined',
|
||||
'Hourglass',
|
||||
'bell',
|
||||
'Paper Plane',
|
||||
'Comment',
|
||||
'Trash'
|
||||
],
|
||||
|
||||
ratingShapeTypes: [
|
||||
'Heart',
|
||||
'Star',
|
||||
|
||||
@ -33,7 +33,7 @@ var sampleVisitorData = [{
|
||||
ipAddr: '192.168.1.1',
|
||||
deviceType: 'desktop',
|
||||
userAgent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'
|
||||
}]
|
||||
}];
|
||||
|
||||
/**
|
||||
* Form routes tests
|
||||
|
||||
@ -232,7 +232,6 @@ module.exports = function(db) {
|
||||
// CookieParser should be above session
|
||||
app.use(cookieParser());
|
||||
|
||||
debugger;
|
||||
// Express MongoDB session storage
|
||||
app.use(session({
|
||||
saveUninitialized: true,
|
||||
|
||||
@ -26,7 +26,6 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
|
||||
forceHelperSize: true,
|
||||
forcePlaceholderSize: true,
|
||||
stop: function(e, ui) {
|
||||
debugger;
|
||||
$scope.update(false, $scope.myform, true, false, function(err){
|
||||
if(err){
|
||||
console.error(err);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user