Skip to content

Commit

Permalink
Merge 1ef07b0 into 27c818e
Browse files Browse the repository at this point in the history
  • Loading branch information
mistergone committed Sep 10, 2018
2 parents 27c818e + 1ef07b0 commit 59bac99
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 16 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ install:
script:
- npm config set package-lock false
- tox
- npm test
- python2.7 setup.py bdist_wheel
- ls dist/*
- gulp lint --travis
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"college-costs"
],
"scripts": {
"test": "mocha test/js-unit/ && snyk test",
"test": "mocha test/js-unit/",
"snyk": "snyk test",
"snyk-protect": "snyk protect"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ clean(){
install(){
echo 'Installing project dependencies...'
npm install
npm install --save --save-exact jquery.easing@1.3.2 normalize-css@2.3.1 jquery@1.11.3 normalize-legacy-addon@0.1.0
}

# Run tasks to build the project for distribution.
Expand Down
8 changes: 4 additions & 4 deletions src/disclosures/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ const app = {
$( document ).ready( function() {
app.init();

// The following line allows for functional testing by exposing
// the getFinancial method.
// $( '#financial-offer' ).data( 'getFinancial', getFinancial );
// console.log( $( '#financial-offer' ).data() );
/* The following line allows for functional testing by exposing
the getFinancial method.
$( '#financial-offer' ).data( 'getFinancial', getFinancial );
console.log( $( '#financial-offer' ).data() ); */
window.getFinancial = getFinancial;
window.getExpenses = getExpenses;
} );
10 changes: 4 additions & 6 deletions src/disclosures/js/views/financial-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ const financialView = {
if ( $win.width() >= 600 && $stickyOffers.data( 'sticky_kit' ) !== true ) {
// Attach event handler
$stickyOffers.trigger( 'sticky_kit:detach' );
console.log( 'Adding', $stickyOffers.data( 'sticky_kit' ) );
$stickyOffers.stick_in_parent()
.on( 'sticky_kit:bottom', function( evt ) {
$( evt.target ).addClass( 'is_bottomed' );
Expand All @@ -823,15 +822,14 @@ const financialView = {
} );
} else if ( $win.width() < 600 ) {
$stickyOffers.trigger( 'sticky_kit:detach' );
console.log( 'detaching:', $stickyOffers.stick_in_parent );
}

// On resize, check if event handler should be attached
$win.on( 'resize', function( evt ) {
clearTimeout( financialView.resizeTimer );
financialView.resizeTimer = setTimeout(function() {
financialView.stickySummariesListener();
}, 250);
financialView.resizeTimer = setTimeout( function() {
financialView.stickySummariesListener();
}, 250 );
} );
},

Expand Down Expand Up @@ -869,7 +867,7 @@ const financialView = {
*/
financialInputChangeListener: function() {
$( '[data-financial]' ).one( 'change', function() {
const dataFinancial = $( this ).data( 'financial' );
const dataFinancial = $( this ).data( 'financial' );
if ( dataFinancial ) {
Analytics.sendEvent( getDataLayerOptions( 'Value Edited', dataFinancial ) );
}
Expand Down
2 changes: 1 addition & 1 deletion src/disclosures/js/views/links-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const linksView = {
* Creates a link in Step 3 to the school's website if the school has provided
* a URL in the College Scorecard data
* @param {object} values Financial model values
*/
*/
setSchoolLink: function( values ) {
const schoolURL = formatURL( values.url );
if ( schoolURL ) {
Expand Down
2 changes: 0 additions & 2 deletions src/disclosures/js/views/question-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const questionView = {
$answerButtons.removeClass( 'active' );
$( this ).addClass( 'active' );

console.log( 'ID! --- ' + $(this).attr( 'id' ) );

if ( isSettlementStatus === true ) {
questionView.$followupYes.hide();
questionView.$followupNoNotSure.hide();
Expand Down
2 changes: 1 addition & 1 deletion test/functional/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.config = {
capabilities: { 'browserName': 'chrome' },
specs: ['dd-functional-settlement-spec.js', 'dd-settlement-only-spec.js', 'dd-feedback-spec.js', 'dd-school-data-spec.js', 'dd-interactions-spec.js' ],
// By limiting the specs to one file, we can isolate and fix specific tests:
// specs: ['dd-settlement-only-spec.js'],
// specs: ['dd-interactions-spec.js'],
onPrepare:function(){
browser.ignoreSynchronization = true;
}
Expand Down

0 comments on commit 59bac99

Please sign in to comment.