'use strict';

var assert = require('assert'),
  fipeCrawler = require('../lib');

describe('fipe-crawler', function() {
  it('should do a request and return the car brands', function(done) {
    var brands = fipeCrawler.getCarBrands()
      .then(function(brands) {
        assert(brands.length > 0, 'expect car brands not to be null');
        assert(brands.length > 0, 'expect car brands to has more than one brand');

        done();
      });
  });
});

@@ -277,35 +277,33 @@
 ssert(brands
-.length %3E 0
+ !== null
 , 'expect ca

asserting object is not null