[Code Style] Run gulp fixstyle

...to apply code style settings from #142.
This commit is contained in:
Victor Woeltjen
2016-05-19 11:29:13 -07:00
parent f12b9704d9
commit fa77139077
440 changed files with 1885 additions and 1662 deletions

View File

@@ -44,10 +44,10 @@ define(
'formatDomainValue',
'formatRangeValue'
]);
mockTelemetryFormatter.formatDomainValue.andCallFake(function(valueIn){
mockTelemetryFormatter.formatDomainValue.andCallFake(function (valueIn) {
return valueIn;
});
mockTelemetryFormatter.formatRangeValue.andCallFake(function(valueIn){
mockTelemetryFormatter.formatRangeValue.andCallFake(function (valueIn) {
return valueIn;
});
@@ -87,7 +87,7 @@ define(
expect(table.columns[2]).toBe(thirdColumn);
});
describe("Building columns from telemetry metadata", function() {
describe("Building columns from telemetry metadata", function () {
var metadata = [{
ranges: [
{
@@ -113,21 +113,21 @@ define(
]
}];
beforeEach(function() {
beforeEach(function () {
table.populateColumns(metadata);
});
it("populates columns", function() {
it("populates columns", function () {
expect(table.columns.length).toBe(5);
});
it("Build columns populates columns with domains to the left", function() {
it("Build columns populates columns with domains to the left", function () {
expect(table.columns[1] instanceof DomainColumn).toBeTruthy();
expect(table.columns[2] instanceof DomainColumn).toBeTruthy();
expect(table.columns[3] instanceof DomainColumn).toBeFalsy();
});
it("Produces headers for each column based on title", function() {
it("Produces headers for each column based on title", function () {
var headers,
firstColumn = table.columns[0];
@@ -138,16 +138,16 @@ define(
});
it("Provides a default configuration with all columns" +
" visible", function() {
" visible", function () {
var configuration = table.buildColumnConfiguration();
expect(configuration).toBeDefined();
expect(Object.keys(configuration).every(function(key){
expect(Object.keys(configuration).every(function (key) {
return configuration[key];
}));
});
it("Column configuration exposes persisted configuration", function() {
it("Column configuration exposes persisted configuration", function () {
var tableConfig,
modelConfig = {
table: {
@@ -168,7 +168,7 @@ define(
var datum,
rowValues;
beforeEach(function() {
beforeEach(function () {
datum = {
'range1': 'range 1 value',
'range2': 'range 2 value',
@@ -178,14 +178,14 @@ define(
rowValues = table.getRowValues(mockDomainObject, datum);
});
it("Returns a value for every column", function() {
it("Returns a value for every column", function () {
expect(rowValues['Range 1'].text).toBeDefined();
expect(rowValues['Range 1'].text).toEqual('range 1' +
' value');
});
it("Uses the telemetry formatter to appropriately format" +
" telemetry values", function() {
" telemetry values", function () {
expect(mockTelemetryFormatter.formatRangeValue).toHaveBeenCalled();
});
});