Skip to content

Commit

Permalink
Using arror functions in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rustedgrail committed Jul 24, 2023
1 parent 2209e83 commit e7b2f13
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 100 deletions.
8 changes: 4 additions & 4 deletions test/bundle-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
var expect = chai.expect;
var graphlib = graphlibDot.graphlib;

describe("bundle", function() {
it("exports graphlibDot", function() {
describe("bundle", () => {
it("exports graphlibDot", () => {
expect(graphlibDot).to.be.an("object");
["read", "readMany", "write"].forEach(function(fn) {
["read", "readMany", "write"].forEach(fn => {
expect(graphlibDot[fn]).to.be.a("function");
});
expect(graphlibDot.graphlib).to.be.an("object");
expect(graphlibDot.version).to.be.a("string");
});

it("can serialize to DOT and back", function() {
it("can serialize to DOT and back", () => {
var g = new graphlib.Graph();
g.setNode("a", { label: "a" });
g.setNode("b", { label: "b" });
Expand Down
4 changes: 2 additions & 2 deletions test/read-many-test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var expect = require("./chai").expect;
var readMany = require("..").readMany;

describe("readMany", function() {
it("can read multiple graphs", function() {
describe("readMany", () => {
it("can read multiple graphs", () => {
var gs = readMany("digraph {} graph {}");
expect(gs).to.have.length(2);
expect(gs[0].isDirected()).to.be.true;
Expand Down
Loading

0 comments on commit e7b2f13

Please sign in to comment.