2) db
postgresql
given is already connected
.getTableCreateScript
should return table create script:
AssertionError: expected 'CREATE TABLE public.users (\n createdat date NULL,\n role_id integer NULL,\n password text NOT NULL,\n email text NOT NULL,\n username text NOT NULL,\n id integer NOT NULL\n);\n\nALTER TABLE public.users ADD CONSTRAINT users_pkey PRIMARY KEY (id)' to deeply equal 'CREATE TABLE public.users (\n id integer NOT NULL,\n username text NOT NULL,\n email text NOT NULL,\n password text NOT NULL,\n role_id integer NULL,\n createdat date NULL\n);\n\nALTER TABLE public.users ADD CONSTRAINT users_pkey PRIMARY KEY (id)'
+ expected - actual
CREATE TABLE public.users (
- createdat date NULL,
+ id integer NOT NULL,
+ username text NOT NULL,
+ email text NOT NULL,
+ password text NOT NULL,
role_id integer NULL,
- password text NOT NULL,
- email text NOT NULL,
- username text NOT NULL,
- id integer NOT NULL
+ createdat date NULL
);
ALTER TABLE public.users ADD CONSTRAINT users_pkey PRIMARY KEY (id)
at Context.<anonymous> (spec/db.spec.js:319:39)
at Generator.next (<anonymous>)
at step (spec/db.spec.js:31:191)
at /home/runner/work/sqlectron-core/sqlectron-core/spec/db.spec.js:31:361
at process._tickCallback (internal/process/next_tick.js:68:7)