Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Granados <michaelgranados@gmail.com>
  • Loading branch information
dgmike committed Jul 20, 2020
1 parent 452a194 commit 121090d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 14.5.0
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { estadosCidades } from './cidades-estados';
import { estadosCidades } from './estados-cidades.js';

var estados = function estados(formato) {
if (undefined === formato) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Estados e Cidades é uma biblioteca para preencher os campos de seleção de cidades e estados.",
"main": "index.js",
"type": "module",
"scripts": {
"test": "mocha",
"compile": "rollup -c"
Expand Down
6 changes: 3 additions & 3 deletions test/main.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const assert = require('assert');
const cidadeEstados = require(__dirname + '/../estados-cidades.node.js');
import { strict as assert } from 'assert';
import * as cidadesEstados from './../main.js';

describe("main", function () {
it("must test something", function () {
assert.equal(1, 1);
assert.equal(cidadesEstados.estados.length, 27);
});
});

0 comments on commit 121090d

Please sign in to comment.