Skip to content

Commit

Permalink
code style/engl grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
sanasol committed Nov 24, 2015
1 parent f97ed07 commit 893bab4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions specs/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,29 +90,28 @@ describe("Fingerprint2", function () {
});
});

describe("returns components as a second argument to callback", function () {
it("does it return components", function (done) {
describe("returns components", function () {
it("does it return components as a second argument to callback", function (done) {
var fp2 = new Fingerprint2();
fp2.get(function(result, components) {
expect(components).not.toBeNull();
done();
});
});

it("check if returned components is array", function (done) {
it("checks if returned components is array", function (done) {
var fp2 = new Fingerprint2();
fp2.get(function(result, components) {
expect(components).toBeArrayOfObjects();
done();
});
});

it("check if js_fonts component is array", function (done) {
it("checks if js_fonts component is array", function (done) {
var fp2 = new Fingerprint2();
fp2.get(function(result, components) {
for(var x = 0; x < components.length; x++) {
if(components[x].key == "js_fonts")
{
if(components[x].key == "js_fonts") {
expect(components[x].value).toBeArray();
}
}
Expand Down

0 comments on commit 893bab4

Please sign in to comment.