Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sahrens committed Apr 24, 2015
1 parent 21b4b5b commit 5225ace
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Libraries/Utilities/__mocks__/PixelRatio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
'use strict';

var PixelRatio = {
startDetecting: function () {
// noop for our implementation
},

get: function() {
return 2;
},

getPixelSizeForLayoutSize: function (layoutSize) {
return Math.round(layoutSize * PixelRatio.get());
}
};

module.exports = PixelRatio;

0 comments on commit 5225ace

Please sign in to comment.